mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
⚡ Switch to JSON for localization service
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import Vue from 'vue';
|
||||
import VueI18n from 'vue-i18n';
|
||||
import englishBaseText from './locales/en';
|
||||
const englishBaseText = require('./locales/en');
|
||||
import axios from 'axios';
|
||||
import { INodeTranslationHeaders } from '@/Interface';
|
||||
|
||||
@@ -40,7 +40,7 @@ export async function loadLanguage(language?: string) {
|
||||
return Promise.resolve(setLanguage(language));
|
||||
}
|
||||
|
||||
const { numberFormats, ...rest } = require(`./locales/${language}`).default;
|
||||
const { numberFormats, ...rest } = require(`./locales/${language}.json`);
|
||||
|
||||
i18n.setLocaleMessage(language, rest);
|
||||
|
||||
|
||||
1026
packages/editor-ui/src/i18n/locales/de.json
Normal file
1026
packages/editor-ui/src/i18n/locales/de.json
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
1021
packages/editor-ui/src/i18n/locales/en.json
Normal file
1021
packages/editor-ui/src/i18n/locales/en.json
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user