bitwarden-estensione-browser/apps/desktop/src/platform/services/i18n.renderer.service.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

70 lines
1.2 KiB
TypeScript
Raw Normal View History

import { I18nService as BaseI18nService } from "@bitwarden/common/platform/services/i18n.service";
2018-04-25 14:31:48 +02:00
export class I18nRendererService extends BaseI18nService {
2018-04-25 14:31:48 +02:00
constructor(systemLanguage: string, localesDirectory: string) {
super(systemLanguage, localesDirectory, (formattedLocale: string) => {
return ipc.platform.getLanguageFile(formattedLocale);
2018-04-25 14:31:48 +02:00
});
2021-08-19 22:40:33 +02:00
// Please leave 'en' where it is, as it's our fallback language in case no translation can be found
2018-04-25 14:31:48 +02:00
this.supportedTranslationLocales = [
2021-07-11 23:44:40 +02:00
"en",
"af",
"ar",
2021-07-11 23:44:40 +02:00
"az",
"be",
"bg",
"bn",
"bs",
2021-07-11 23:44:40 +02:00
"ca",
"cs",
"da",
"de",
"el",
"en-GB",
"en-IN",
"eo",
2021-07-11 23:44:40 +02:00
"es",
"et",
"eu",
2021-07-11 23:44:40 +02:00
"fa",
"fi",
"fil",
2021-07-11 23:44:40 +02:00
"fr",
"he",
"hi",
2021-07-11 23:44:40 +02:00
"hr",
"hu",
"id",
2021-07-06 23:40:17 +02:00
"it",
"ja",
"ka",
"km",
2021-07-06 23:40:17 +02:00
"kn",
"ko",
"lv",
"me",
"ml",
"nb",
"nl",
"nn",
2021-07-06 23:40:17 +02:00
"pl",
"pt-BR",
"pt-PT",
"ro",
"ru",
"si",
2021-07-06 23:40:17 +02:00
"sk",
"sl",
2021-07-06 23:40:17 +02:00
"sr",
"sv",
"th",
"tr",
"uk",
"vi",
"zh-CN",
"zh-TW",
2018-04-25 14:31:48 +02:00
];
2018-01-24 20:59:03 +01:00
}
}