Add flags

This commit is contained in:
2023-09-06 16:37:25 +01:00
parent 64012932f6
commit 660fbe746b
7 changed files with 24 additions and 5 deletions

View File

@ -11,7 +11,7 @@ async function importLang(code: string) {
return Object.fromEntries(ent) as Record<string, string>;
}
export const AllLocales = ["en", "de", "es", "th", "nl", "ja", "fa", "sw", "sv"];
export const AllLocales = [DefaultLocale, "de-DE", "es-ES", "th-TH", "nl-NL", "ja-JP", "fa-IR", "sw-KE", "sv-SE"];
const getMessages = (locale: string) => {
const truncatedLocale = locale.toLowerCase().split(/[_-]+/)[0];