From 51106baf3290e535c63f91913a6981b035de9d89 Mon Sep 17 00:00:00 2001 From: sua yoo Date: Wed, 18 Jan 2023 14:20:32 -0800 Subject: [PATCH] commit locale codes --- frontend/.gitignore | 2 +- frontend/src/__generated__/locale-codes.ts | 23 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 frontend/src/__generated__/locale-codes.ts diff --git a/frontend/.gitignore b/frontend/.gitignore index 5d05b59879..d7b774cd1e 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 0000000000..8ab8586d6a --- /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;