diff --git a/.github/workflows/frontend-lint-test-build.yaml b/.github/workflows/frontend-lint-test-build.yaml index aeedc598..d35c2452 100644 --- a/.github/workflows/frontend-lint-test-build.yaml +++ b/.github/workflows/frontend-lint-test-build.yaml @@ -244,6 +244,10 @@ jobs: run: yarn install --frozen-lockfile # Localize: + - name: Localization extract dry run + working-directory: frontend + run: yarn localize:extract + - name: Localization build dry run working-directory: frontend run: yarn localize:build diff --git a/frontend/src/features/archived-items/crawl-log-table.ts b/frontend/src/features/archived-items/crawl-log-table.ts index addba92a..513e6a54 100644 --- a/frontend/src/features/archived-items/crawl-log-table.ts +++ b/frontend/src/features/archived-items/crawl-log-table.ts @@ -11,9 +11,7 @@ import { stopProp } from "@/utils/events"; import { tw } from "@/utils/tailwind"; const labelFor: Record = { - [CrawlLogContext.General]: msg("General", { - desc: "'General' crawl log context type", - }), + [CrawlLogContext.General]: msg("General"), [CrawlLogContext.Behavior]: msg("Page Behavior"), [CrawlLogContext.BehaviorScript]: msg("Built-in Behavior"), [CrawlLogContext.BehaviorScriptCustom]: msg("Custom Behavior Script"), diff --git a/frontend/src/features/collections/collection-items-dialog.ts b/frontend/src/features/collections/collection-items-dialog.ts index 7e98fe6c..b6f68842 100644 --- a/frontend/src/features/collections/collection-items-dialog.ts +++ b/frontend/src/features/collections/collection-items-dialog.ts @@ -207,7 +207,7 @@ export class CollectionItemsDialog extends BtrixElement { ${msg("Select Archived Items")} ${msg(str`in ${this.collectionName}`)}${msg("in")} ${this.collectionName}
diff --git a/frontend/src/features/crawl-workflows/workflow-editor.ts b/frontend/src/features/crawl-workflows/workflow-editor.ts index 9cc5b520..7b826e2a 100644 --- a/frontend/src/features/crawl-workflows/workflow-editor.ts +++ b/frontend/src/features/crawl-workflows/workflow-editor.ts @@ -732,7 +732,7 @@ export class WorkflowEditor extends BtrixElement { this.isCrawlRunning === null} ?loading=${this.isSubmitting || this.isCrawlRunning === null} > - ${msg(this.isCrawlRunning ? "Update Crawl" : "Run Crawl")} + ${this.isCrawlRunning ? msg("Update Crawl") : msg("Run Crawl")} ${when(this.showKeyboardShortcuts, () => keyboardShortcut("Enter"))} diff --git a/frontend/src/features/crawl-workflows/workflow-list.ts b/frontend/src/features/crawl-workflows/workflow-list.ts index e141e218..fdedc926 100644 --- a/frontend/src/features/crawl-workflows/workflow-list.ts +++ b/frontend/src/features/crawl-workflows/workflow-list.ts @@ -344,26 +344,20 @@ export class WorkflowListItem extends BtrixElement { const compactDuration = this.localize.humanizeDuration(dur, { compact: true, }); - return msg(str`in ${compactDuration}`, { - desc: "`compactDuration` example: '2h'", - }); + return `${msg("in")} ${compactDuration}`; }; const verboseIn = (dur: number) => { const verboseDuration = this.localize.humanizeDuration(dur, { verbose: true, unitCount: 2, }); - return msg(str`in ${verboseDuration}`, { - desc: "`verboseDuration` example: '2 hours, 15 seconds'", - }); + return `${msg("in")} ${verboseDuration}`; }; const compactFor = (dur: number) => { const compactDuration = this.localize.humanizeDuration(dur, { compact: true, }); - return msg(str`for ${compactDuration}`, { - desc: "`compactDuration` example: '2h'", - }); + return `${msg("for")} ${compactDuration}`; }; const verboseFor = (dur: number) => { const verboseDuration = this.localize.humanizeDuration(dur, { diff --git a/frontend/xliff/fr.xlf b/frontend/xliff/fr.xlf index 4ab1f28b..2191ad97 100644 --- a/frontend/xliff/fr.xlf +++ b/frontend/xliff/fr.xlf @@ -2095,7 +2095,7 @@ comptes connectés. Notez que les sites web peuvent déconnecter les profils apr Are you sure you want to delete ? Êtes-vous certain de vouloir supprimer - <x id="0" equiv-text="&lt ;strong&gt ;${this.selectedCollection ?.name}&lt ;/strong&gt ;"/> ? +  ? Search by Name @@ -5058,7 +5058,7 @@ comptes connectés. Notez que les sites web peuvent déconnecter les profils apr Add the following JavaScript to your /replay/sw.js: - Ajoutez le JavaScript suivant à votre <x id="0" equiv-text="&lt ;code class=&quot ;text-[0.9em]&quot ;&gt ;"/>/replay/sw.js<x id="1" equiv-text="&lt ;/code&gt ;"/> : + Ajoutez le JavaScript suivant à votre /replay/sw.js : See our embedding guide for more details.