22 lines
349 B
JavaScript
22 lines
349 B
JavaScript
export const global_lang = {};
|
|
export const global_charset = {};
|
|
|
|
/**
|
|
* @param {!string} name
|
|
* @param {Object} charset
|
|
*/
|
|
|
|
export function registerCharset(name, charset) {
|
|
|
|
global_charset[name] = charset;
|
|
}
|
|
|
|
/**
|
|
* @param {!string} name
|
|
* @param {Object} lang
|
|
*/
|
|
|
|
export function registerLanguage(name, lang) {
|
|
|
|
global_lang[name] = lang;
|
|
} |