Always use english translation for language selectors

This commit is contained in:
Johannes Zellner
2025-07-10 14:37:31 +02:00
parent 337c5412b7
commit cf5059b006
2 changed files with 4 additions and 3 deletions
+1 -2
View File
@@ -148,7 +148,6 @@ async function onTwoFADisable() {
disableTwoFADialog.value.open();
}
// Init
onMounted(async () => {
let [error, result] = await dashboardModel.config();
@@ -161,7 +160,7 @@ onMounted(async () => {
languages.value = result.map(l => {
return {
id: l,
display: t(`lang.${l}`)
display: t(`lang.${l}`, l /* default fallback */, { locale: 'en' })
};
}).sort((a, b) => {
return a.display.localeCompare(b.display);
+3 -1
View File
@@ -69,8 +69,10 @@ onMounted(async () => {
allLanguages.value = result.map(l => {
return {
id: l,
display: t(`lang.${l}`)
display: t(`lang.${l}`, l /* default fallback */, { locale: 'en' })
};
}).sort((a, b) => {
return a.display.localeCompare(b.display);
});
[error, result] = await cloudronModel.getLanguage();