jab-image-editor
Version:
JAB TOAST UI Component: ImageEditor
20 lines (17 loc) • 361 B
JavaScript
/**
* Translate messages
*/
class Locale {
constructor(locale) {
this._locale = locale;
}
/**
* localize message
* @param {string} message - message who will be localized
* @returns {string}
*/
localize(message) {
return this._locale[message] || message;
}
}
export default Locale;