Also export locales from I18n module

This may let plugins authors and users to interact with the
registered translations.
This commit is contained in:
Yohan Boniface
2024-02-27 21:33:02 +01:00
parent e619eac438
commit a817fd0e56
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import * as Util from './Util.js';
* Utility functions to deal with translations.
*/
const locales = {};
export const locales = {};
// @property locale: String
// The current locale code, that will be used when translating strings.

View File

@ -2,7 +2,7 @@ export {default as Browser} from './Browser.js';
export {Class} from './Class.js';
export {Evented} from './Events.js';
export {Handler} from './Handler.js';
export {locale, translate, setLocale, registerLocale} from './I18n.js';
export {locale, locales, translate, setLocale, registerLocale} from './I18n.js';
import * as Util from './Util.js';
export {Util};