improve loading of extension locales with fallback
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
* @copyright 2010 Alexis Deveria
|
||||
*
|
||||
*/
|
||||
import {loadExtensionTranslation} from '../../locale.js';
|
||||
|
||||
export default {
|
||||
name: 'connector',
|
||||
@@ -350,8 +351,7 @@ export default {
|
||||
}
|
||||
}
|
||||
}];
|
||||
// eslint-disable-next-line node/no-unsupported-features/es-syntax
|
||||
const {default: strings} = await import(`./locale/${svgEditor.curPrefs.lang}.js`);
|
||||
const strings = await loadExtensionTranslation('connector', svgEditor.curPrefs.lang);
|
||||
return {
|
||||
name: strings.name,
|
||||
svgicons: 'conn.svg',
|
||||
|
||||
Reference in New Issue
Block a user