diff --git a/frontend/.gitignore b/frontend/.gitignore index 5d05b598..d7b774cd 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -24,7 +24,7 @@ .env.*.local # translation files -src/__generated__/**/*.ts +src/__generated__/locales/*.ts xliff/*.xlf storybook-static diff --git a/frontend/src/__generated__/locale-codes.ts b/frontend/src/__generated__/locale-codes.ts new file mode 100644 index 00000000..8ab8586d --- /dev/null +++ b/frontend/src/__generated__/locale-codes.ts @@ -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 = [ + `en-US`, +] as const; + +/** + * All valid project locale codes. Sorted lexicographically. + */ +export const allLocales = [ + `en`, + `en-US`, +] as const;