UNPKG

jab-image-editor

Version:
20 lines (17 loc) 361 B
/** * 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;