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
This commit is contained in:
sua yoo 2025-07-22 14:19:28 -07:00 committed by GitHub
parent d41f60d740
commit 361612251b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 12 additions and 16 deletions

View File

@ -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

View File

@ -11,9 +11,7 @@ import { stopProp } from "@/utils/events";
import { tw } from "@/utils/tailwind";
const labelFor: Record<CrawlLogContext, string> = {
[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"),

View File

@ -207,7 +207,7 @@ export class CollectionItemsDialog extends BtrixElement {
<span slot="label">
${msg("Select Archived Items")}
<span class="font-normal text-neutral-500"
>${msg(str`in ${this.collectionName}`)}</span
>${msg("in")} ${this.collectionName}</span
>
</span>
<div class="dialogContent flex flex-col">

View File

@ -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"))}
</sl-button>
</sl-tooltip>

View File

@ -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, {

4
frontend/xliff/fr.xlf generated
View File

@ -2095,7 +2095,7 @@ comptes connectés. Notez que les sites web peuvent déconnecter les profils apr
<source>Are you sure you want to delete
<x id="0" equiv-text="&lt;strong&gt;${this.selectedCollection?.name}&lt;/strong&gt;"/>?</source>
<target state="translated">Êtes-vous certain de vouloir supprimer
&lt;x id="0" equiv-text="&amp;lt;strong&amp;gt;${this.selectedCollection?.name}&amp;lt;/strong&amp;gt;"/&gt;?</target>
<x id="0" equiv-text="&lt;strong&gt;${this.selectedCollection?.name}&lt;/strong&gt;"/>?</target>
</trans-unit>
<trans-unit id="s7be481b712fcb089" xml:space="preserve">
<source>Search by Name</source>
@ -5058,7 +5058,7 @@ comptes connectés. Notez que les sites web peuvent déconnecter les profils apr
</trans-unit>
<trans-unit id="hacc9b91be8da34c8" xml:space="preserve">
<source>Add the following JavaScript to your <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;"/>:</source>
<target state="translated">Ajoutez le JavaScript suivant à votre &lt;x id="0" equiv-text="&amp;lt;code class=&amp;quot;text-[0.9em]&amp;quot;&amp;gt;"/&gt;/replay/sw.js&lt;x id="1" equiv-text="&amp;lt;/code&amp;gt;"/&gt; :</target>
<target state="translated">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;"/> :</target>
</trans-unit>
<trans-unit id="h654faf8fb38c80f3" xml:space="preserve">
<source>See <x id="0" equiv-text="&lt;a class=&quot;text-primary&quot; href=&quot;https://replayweb.page/docs/embedding&quot; target=&quot;_blank&quot;&gt;"/> our embedding guide<x id="1" equiv-text="&lt;/a&gt;"/> for more details.</source>