Skip to content
Snippets Groups Projects

Fix: Discipline label not showing

Merged Petar Hristov requested to merge Issue/3032-disciplines into main
Files
5
@@ -285,6 +285,10 @@ export default defineComponent({
},
disciplineLabel(): string {
let locale = this.$i18n.locale;
// Ensure that the value of locale is a valid locale, otherwie the property for disciplineLabel will be inaccurate
if (this.$i18n.availableLocales.includes(locale) === false) {
locale = this.$i18n.fallbackLocale.toString();
}
locale = locale.charAt(0).toUpperCase() + locale.slice(1);
return `displayName${locale}`;
},
Loading