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:
		
							parent
							
								
									d41f60d740
								
							
						
					
					
						commit
						361612251b
					
				| @ -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 | ||||
|  | ||||
| @ -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"), | ||||
|  | ||||
| @ -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"> | ||||
|  | ||||
| @ -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> | ||||
|  | ||||
| @ -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
									
									
									
								
							
							
						
						
									
										4
									
								
								frontend/xliff/fr.xlf
									
									
									
										generated
									
									
									
								
							| @ -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="<strong>${this.selectedCollection?.name}</strong>"/>?</source> | ||||
|         <target state="translated">Êtes-vous certain de vouloir supprimer | ||||
|                  <x id="0" equiv-text="&lt ;strong&gt ;${this.selectedCollection ?.name}&lt ;/strong&gt ;"/> ?</target> | ||||
|                 <x id="0" equiv-text="<strong>${this.selectedCollection?.name}</strong>"/> ?</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="<code class="text-[0.9em]">"/>/replay/sw.js<x id="1" equiv-text="</code>"/>:</source> | ||||
|         <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> | ||||
|         <target state="translated">Ajoutez le JavaScript suivant à votre <x id="0" equiv-text="<code class="text-[0.9em]">"/>/replay/sw.js<x id="1" equiv-text="</code>"/> :</target> | ||||
|       </trans-unit> | ||||
|       <trans-unit id="h654faf8fb38c80f3" xml:space="preserve"> | ||||
|         <source>See <x id="0" equiv-text="<a class="text-primary" href="https://replayweb.page/docs/embedding" target="_blank">"/> our embedding guide<x id="1" equiv-text="</a>"/> for more details.</source> | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user