UNPKG

node-web-mvc

Version:
67 lines (65 loc) 1.79 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Locale { constructor(language, country, variant) { this.language = language; this.country = country; this.variant = this.variant; } toString() { return `${this.language}${this.country ? '-' + this.country : ''}`; } } /** Useful constant for language. */ Locale.ENGLISH = new Locale('en', '', ''); /** Useful constant for language. */ Locale.FRENCH = new Locale('fr', 'FR', ''); /** Useful constant for language. */ Locale.GERMAN = new Locale('de', '', ''); /** Useful constant for language. */ Locale.ITALIAN = new Locale('it', '', ''); /** Useful constant for language. */ Locale.JAPANESE = new Locale('ja', '', ''); /** Useful constant for language. */ Locale.KOREAN = new Locale('ko', '', ''); /** Useful constant for language. */ Locale.CHINESE = new Locale('zh', '', ''); /** Useful constant for country. */ Locale.CANADA = new Locale('en', 'CA', ''); /** Useful constant for country. */ Locale.CANADA_FRENCH = new Locale('fr', 'CA', ''); /** Useful constant for country. /** Useful constant for language. */ Locale.SIMPLIFIED_CHINESE = new Locale('zh', 'CN', ''); /** Useful constant for language. */ Locale.TRADITIONAL_CHINESE = new Locale('zh', 'TW', ''); /** Useful constant for country. */ Locale.FRANCE = new Locale('fr', 'FR', ''); /** Useful constant for country. */ Locale.GERMANY = new Locale('de', 'DE', ''); /** Useful constant for country. */ Locale.ITALY = new Locale('it', 'IT', ''); /** Useful constant for country. */ Locale.JAPAN = new Locale('ja', 'JP', ''); /** Useful constant for country. */ Locale.UK = new Locale('en', 'GB', ''); /** Useful constant for country. */ Locale.US = new Locale('en', 'US', ''); exports.default = Locale;