- | {{ profile.name }}(deleted) |
+ {{ profile.name }}({{ $t('Heightmap.Deleted') }}) |
@@ -97,63 +97,63 @@
- Rename Bed Mesh Profile
+ {{ $t('Heightmap.RenameBedMeshProfile') }}
-
+
- abort
- rename
+ {{ $t('Heightmap.Abort') }}
+ {{ $t('Heightmap.Rename') }}
- Bed Mesh Calibrate
+ {{ $t('Heightmap.BedMeshCalibrate') }}
- Do you really want to start the bed calibration?
+ {{ $t('Heightmap.DoYouReallyWantToCalibrate') }}
- abort
- calibrate
+ {{ $t('Heightmap.Abort') }}
+ {{ $t('Heightmap.Calibrate') }}
- Delete Bed Mesh Profile
+
- Do you really want to delete the profile "{{ removeDialogProfile }}"?
+ {{ $t('Heightmap.DoYouReallyWantToDelete') }} "{{ removeDialogProfile }}"?
- abort
- remove
+ {{ $t('Heightmap.Abort') }}
+ {{ $t('Heightmap.Remove') }}
diff --git a/src/pages/settings/interface.vue b/src/pages/settings/interface.vue
index b31f12b6..38d41cb8 100644
--- a/src/pages/settings/interface.vue
+++ b/src/pages/settings/interface.vue
@@ -3,7 +3,6 @@
-
diff --git a/src/plugins/i18n.js b/src/plugins/i18n.js
index d0a48ca8..3216ab52 100644
--- a/src/plugins/i18n.js
+++ b/src/plugins/i18n.js
@@ -2,22 +2,23 @@ import Vue from 'vue';
import VueI18n from 'vue-i18n'
Vue.use(VueI18n)
-function loadLocaleMessages () {
- const locales = require.context('../locales', true, /[A-Za-z0-9-_,\s]+\.js$/i)
- const messages = {}
- locales.keys().forEach(key => {
- const matched = key.match(/([A-Za-z0-9-_]+)\./i)
- if (matched && matched.length > 1) {
- const locale = matched[1]
- messages[locale] = locales(key).default
- }
- })
- console.log(messages,666)
- return messages
- }
+function loadLocaleMessages() {
+ const locales = require.context('../locales', true, /[A-Za-z0-9-_,\s]+\.js$/i)
+ const messages = {}
- export default new VueI18n({
- locale: process.env.VUE_APP_I18N_LOCALE || 'en',
- fallbackLocale: process.env.VUE_APP_I18N_FALLBACK_LOCALE || 'en',
- messages: loadLocaleMessages()
- })
\ No newline at end of file
+ locales.keys().forEach(key => {
+ const matched = key.match(/([A-Za-z0-9-_]+)\./i)
+ if (matched && matched.length > 1) {
+ const locale = matched[1]
+ messages[locale] = locales(key).default
+ }
+ })
+
+ return messages
+}
+
+export default new VueI18n({
+ locale: process.env.VUE_APP_I18N_LOCALE || 'en',
+ fallbackLocale: process.env.VUE_APP_I18N_FALLBACK_LOCALE || 'en',
+ messages: loadLocaleMessages()
+})
\ No newline at end of file
|