diff --git a/src/renderer/components/+workloads/workloads.route.ts b/src/renderer/components/+workloads/workloads.route.ts index 2983ed571b..5586102faf 100644 --- a/src/renderer/components/+workloads/workloads.route.ts +++ b/src/renderer/components/+workloads/workloads.route.ts @@ -64,7 +64,7 @@ export const statefulSetsURL = buildURL(statefulSetsRo export const jobsURL = buildURL(jobsRoute.path) export const cronJobsURL = buildURL(cronJobsRoute.path) -export const resourceURL: Partial>> = { +export const workloadURL: Partial>> = { "pods": podsURL, "deployments": deploymentsURL, "daemonsets": daemonSetsURL, diff --git a/src/renderer/i18n.ts b/src/renderer/i18n.ts index dbb07018f9..f38bd71f41 100644 --- a/src/renderer/i18n.ts +++ b/src/renderer/i18n.ts @@ -37,11 +37,11 @@ export class LocalizationStore { reaction(() => this.activeLang, lang => storage.set(lang)); } - init() { - this.setLocale(this.activeLang); + async init() { + await this.setLocale(this.activeLang); } - setLocale(locale: string) { + async setLocale(locale: string) { const catalog = require(`@lingui/loader!../../locales/${locale}/messages.po`); // eslint-disable-line @typescript-eslint/no-var-requires _i18n.loadLocaleData(locale, { plurals: plurals[locale] }); _i18n.load(locale, catalog.messages); @@ -50,7 +50,7 @@ export class LocalizationStore { moment.locale(locale); this.activeLang = locale; - _i18n.activate(locale); + await _i18n.activate(locale); } }