PHP Classes

File: toastui/src/js/ui/locale/locale.js

Recommend this page to a friend!
  Classes of Mark de Leon  >  PHP Document Scanner using SANE or eSCL AirPrint  >  toastui/src/js/ui/locale/locale.js  >  Download  
File: toastui/src/js/ui/locale/locale.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Document Scanner using SANE or eSCL AirPrint
Web interface to scan printed documents
Author: By
Last change:
Date: 1 year ago
Size: 342 bytes
 

Contents

Class file image Download
/**
 * 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;
For more information send a message to info at phpclasses dot org.