Skip to content

Commit 3616122

Browse files
authored
l18n: Manually fix translation files (#2759)
- Fixes French XLIFF file issues preventing `yarn localize:build` from succeeded - Fixes extraction errors preventing `yarn localize:extract` from succeeded
1 parent d41f60d commit 3616122

File tree

6 files changed

+12
-16
lines changed

6 files changed

+12
-16
lines changed

.github/workflows/frontend-lint-test-build.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@ jobs:
244244
run: yarn install --frozen-lockfile
245245

246246
# Localize:
247+
- name: Localization extract dry run
248+
working-directory: frontend
249+
run: yarn localize:extract
250+
247251
- name: Localization build dry run
248252
working-directory: frontend
249253
run: yarn localize:build

frontend/src/features/archived-items/crawl-log-table.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ import { stopProp } from "@/utils/events";
1111
import { tw } from "@/utils/tailwind";
1212

1313
const labelFor: Record<CrawlLogContext, string> = {
14-
[CrawlLogContext.General]: msg("General", {
15-
desc: "'General' crawl log context type",
16-
}),
14+
[CrawlLogContext.General]: msg("General"),
1715
[CrawlLogContext.Behavior]: msg("Page Behavior"),
1816
[CrawlLogContext.BehaviorScript]: msg("Built-in Behavior"),
1917
[CrawlLogContext.BehaviorScriptCustom]: msg("Custom Behavior Script"),

frontend/src/features/collections/collection-items-dialog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export class CollectionItemsDialog extends BtrixElement {
207207
<span slot="label">
208208
${msg("Select Archived Items")}
209209
<span class="font-normal text-neutral-500"
210-
>${msg(str`in ${this.collectionName}`)}</span
210+
>${msg("in")} ${this.collectionName}</span
211211
>
212212
</span>
213213
<div class="dialogContent flex flex-col">

frontend/src/features/crawl-workflows/workflow-editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ export class WorkflowEditor extends BtrixElement {
732732
this.isCrawlRunning === null}
733733
?loading=${this.isSubmitting || this.isCrawlRunning === null}
734734
>
735-
${msg(this.isCrawlRunning ? "Update Crawl" : "Run Crawl")}
735+
${this.isCrawlRunning ? msg("Update Crawl") : msg("Run Crawl")}
736736
${when(this.showKeyboardShortcuts, () => keyboardShortcut("Enter"))}
737737
</sl-button>
738738
</sl-tooltip>

frontend/src/features/crawl-workflows/workflow-list.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -344,26 +344,20 @@ export class WorkflowListItem extends BtrixElement {
344344
const compactDuration = this.localize.humanizeDuration(dur, {
345345
compact: true,
346346
});
347-
return msg(str`in ${compactDuration}`, {
348-
desc: "`compactDuration` example: '2h'",
349-
});
347+
return `${msg("in")} ${compactDuration}`;
350348
};
351349
const verboseIn = (dur: number) => {
352350
const verboseDuration = this.localize.humanizeDuration(dur, {
353351
verbose: true,
354352
unitCount: 2,
355353
});
356-
return msg(str`in ${verboseDuration}`, {
357-
desc: "`verboseDuration` example: '2 hours, 15 seconds'",
358-
});
354+
return `${msg("in")} ${verboseDuration}`;
359355
};
360356
const compactFor = (dur: number) => {
361357
const compactDuration = this.localize.humanizeDuration(dur, {
362358
compact: true,
363359
});
364-
return msg(str`for ${compactDuration}`, {
365-
desc: "`compactDuration` example: '2h'",
366-
});
360+
return `${msg("for")} ${compactDuration}`;
367361
};
368362
const verboseFor = (dur: number) => {
369363
const verboseDuration = this.localize.humanizeDuration(dur, {

frontend/xliff/fr.xlf

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)