#603 translate changes

This commit is contained in:
agriyadev5
2021-08-24 12:43:38 +05:30
parent 9770eb56eb
commit d2c6729d7b
50 changed files with 50 additions and 116 deletions

View File

@@ -32,7 +32,7 @@ const loadExtensionTranslation = async function (svgEditor) {
// eslint-disable-next-line no-unsanitized/method
translationModule = await import(`./locale/en.js`);
}
svgEditor.i18next.addResourceBundle(lang, name, translationModule.default);
svgEditor.i18next.addResourceBundle(lang, 'translation', translationModule.default, true, true);
};
export default {
@@ -49,6 +49,7 @@ export default {
* @returns {void}
*/
const clickClear = async function () {
console.log(svgEditor.i18next);
const [ x, y ] = svgEditor.configObj.curConfig.dimensions;
const ok = await seConfirm(svgEditor.i18next.t('notification.QwantToClear'));
if (ok === "Cancel") {

View File

@@ -1,9 +1,8 @@
export default {
name: 'opensave',
tools: {
new_doc: 'New Image',
open_doc: 'Open SVG',
save_doc: 'Save Image',
save_as_doc: 'Save As Image'
save_doc: 'Save SVG',
save_as_doc: 'Save as SVG'
}
};

View File

@@ -1,5 +1,4 @@
export default {
name: 'ouvreenregistrer',
tools: {
new_doc: 'Nouvelle image',
open_doc: 'Ouvrir le SVG',

View File

@@ -1,5 +1,4 @@
export default {
name: '打开保存',
tools: {
new_doc: '新图片',
open_doc: '打开 SVG',