mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-07-20 16:37:08 +00:00
Also export locales from I18n module
This may let plugins authors and users to interact with the registered translations.
This commit is contained in:
@ -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.
|
||||
|
@ -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};
|
||||
|
Reference in New Issue
Block a user