summaryrefslogtreecommitdiff
path: root/src/client/app/mobile
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/app/mobile')
-rw-r--r--src/client/app/mobile/views/pages/settings.vue12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/client/app/mobile/views/pages/settings.vue b/src/client/app/mobile/views/pages/settings.vue
index 8b6d0e79d2..a48729c709 100644
--- a/src/client/app/mobile/views/pages/settings.vue
+++ b/src/client/app/mobile/views/pages/settings.vue
@@ -118,7 +118,8 @@
<option v-for="x in langs" :value="x[0]" :key="x[0]">{{ x[1] }}</option>
</optgroup>
</ui-select>
- <span><fa icon="info-circle"/> {{ $t('lang-tip') }}</span>
+ <div>Current: <i>{{ this.currentLanguage }}</i></div>
+ <p><fa icon="info-circle"/> {{ $t('lang-tip') }}</p>
</section>
</ui-card>
@@ -225,6 +226,7 @@ export default Vue.extend({
version,
codename,
langs,
+ currentLanguage: 'Unknown',
latestVersion: undefined,
checkingForUpdate: false
};
@@ -377,6 +379,14 @@ export default Vue.extend({
},
},
+ created() {
+ try {
+ const locale = JSON.parse(localStorage.getItem('locale') || "{}");
+ const localeKey = localStorage.getItem('localeKey');
+ this.currentLanguage = `${locale.meta.lang} (${localeKey})`;
+ } catch { }
+ },
+
mounted() {
document.title = this.$t('settings');
},