From 7030e784e91195e5a7e517077fcde472b82368df Mon Sep 17 00:00:00 2001 From: sua yoo Date: Wed, 18 Jan 2023 14:28:21 -0800 Subject: [PATCH] Add locale codes to version control (#501) fixes frontend build issue --- 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 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;