diff --git a/lit-localize.json b/lit-localize.json index 6d733b6..15e3d1f 100644 --- a/lit-localize.json +++ b/lit-localize.json @@ -7,7 +7,8 @@ ], "output": { "mode": "runtime", - "outputDir": "./src/generated/locales" + "outputDir": "./src/generated/locales", + "localeCodesModule": "src/generated/locale-codes.js" }, "interchange": { "format": "xliff", diff --git a/src/generated/locale-codes.js b/src/generated/locale-codes.js new file mode 100644 index 0000000..98d24dc --- /dev/null +++ b/src/generated/locale-codes.js @@ -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`, +]; diff --git a/src/generated/locales/ar.js b/src/generated/locales/ar.js new file mode 100644 index 0000000..04d6053 --- /dev/null +++ b/src/generated/locales/ar.js @@ -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`, + }; + \ No newline at end of file diff --git a/xliff/ar.xlf b/xliff/ar.xlf index 88957d3..d87b494 100644 --- a/xliff/ar.xlf +++ b/xliff/ar.xlf @@ -4,6 +4,7 @@