Skip to content

Commit

Permalink
Add translated text #58
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtr126 committed Oct 18, 2023
1 parent ee1afc6 commit bad6eda
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lit-localize.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
],
"output": {
"mode": "runtime",
"outputDir": "./src/generated/locales"
"outputDir": "./src/generated/locales",
"localeCodesModule": "src/generated/locale-codes.js"
},
"interchange": {
"format": "xliff",
Expand Down
23 changes: 23 additions & 0 deletions src/generated/locale-codes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Do not modify this file by hand!
// Re-generate this file by running lit-localize.

/**
* The locale code that templates in this source code are written in.
*/
export const sourceLocale = `en`;

/**
* The other locale codes that this application is localized into. Sorted
* lexicographically.
*/
export const targetLocales = [
`ar`,
];

/**
* All valid project locale codes. Sorted lexicographically.
*/
export const allLocales = [
`ar`,
`en`,
];
26 changes: 26 additions & 0 deletions src/generated/locales/ar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

// Do not modify this file by hand!
// Re-generate this file by running lit-localize




/* eslint-disable no-irregular-whitespace */
/* eslint-disable @typescript-eslint/no-explicit-any */

export const templates = {
's65aa9c025267e5cd': `translated text`,
'sae1c7f13b7c0c47f': `Start`,
's78e51a17af6607c3': `Create /data directory`,
's877c918c3f399cba': `Create data.img`,
's26bf81a54b3c98fd': `Install for QEMU`,
'sc16e00a7a8b2fde2': `Back`,
'sff3418011f0f7a2f': `Extracting ISO`,
's4396b8c2cb0d7d78': `Open /etc/grub.d/40_custom or /boot/grub/grub.cfg in a text editor`,
'sc27dc998602cdc61': `Example:`,
'sb746ace08dc971f5': `Create a new grub entry with the following code: `,
'sbc8741ff143d32f6': ` After editing /etc/grub.d/40_custom, re-generate grub config with command:`,
's701c80c5e6ceabf2': `The exact command to use may vary depending on your distro.`,
's0379fc73608ab971': `Done`,
};

1 change: 1 addition & 0 deletions xliff/ar.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<body>
<trans-unit id="s65aa9c025267e5cd">
<source>Select your Android x86 Installation media or .ISO file to continue</source>
<target>translated text</target>
</trans-unit>
<trans-unit id="sae1c7f13b7c0c47f">
<source>Start</source>
Expand Down

0 comments on commit bad6eda

Please sign in to comment.