Sha256: ef27ef338d84372c037c1d1bd112cb4ad86622ddb81812d2e79c8715c12f4c03
Contents?: true
Size: 429 Bytes
Versions: 6
Compression:
Stored size: 429 Bytes
Contents
export default { locale: null, translations: null, init(locale, translations) { this.locale = locale; this.translations = translations; if (typeof this.translations === "string") { this.translations = JSON.parse(this.translations); } }, t(key) { var humanize; humanize = key.charAt(0).toUpperCase() + key.replace(/_/g, " ").slice(1); return this.translations[key] || humanize; }, };
Version data entries
6 entries across 6 versions & 1 rubygems