You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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;
|
|
} |