#603 translate changes
This commit is contained in:
@@ -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") {
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
export default {
|
||||
name: 'ouvreenregistrer',
|
||||
tools: {
|
||||
new_doc: 'Nouvelle image',
|
||||
open_doc: 'Ouvrir le SVG',
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
export default {
|
||||
name: '打开保存',
|
||||
tools: {
|
||||
new_doc: '新图片',
|
||||
open_doc: '打开 SVG',
|
||||
|
||||
Reference in New Issue
Block a user