UNPKG

qcobjects-docs

Version:

The official app and website for documentation of QCObjects

38 lines (30 loc) 817 B
#### org.quickcorp.i18n_messages.i18n_messages Used to call the i18n engine. ##### Usage: ```javascript class i18n_messages_<custom lang> extends i18n_messages { ... } ``` ##### Example ```javascript 'use strict'; // file: js/packages/org.quickcorp.i18n_messages.es.js Package('org.quickcorp.i18n_messages.es', [ class i18n_messages_es extends i18n_messages { messages= [ // ... your custom language dictionary is here { "en":"This is a paragraph", "es":"Esto es un párrafo" }, { "en":"Welcome to my new app", "es":"Bienvenido a mi nueva app" } ] } ]); // the next line generates an instance of the i18n engine and attaches it automatically in the package const _i18n_messages_es = New(ClassFactory("i18n_messages_es")); ```