Skip to content
This repository has been archived by the owner on Jan 25, 2020. It is now read-only.

krakenjs/makara-writer-amd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

makara-writer-amd

Creates AMD formatted language bundles from .properties files.

API

Default exported function

module.exports = function writeLocale(appRoot) {...

  • appRoot {String}: filesystem path where locale directory resides
  • @returns {Function}: function (locale, cb) {
    • locale {String}: (e.g. fr-FR)
    • cb {Function}: errback or called when all .properties files under the given locale directory (appRoot/FR/fr/) are transformed into an AMD module appRoot/.build/fr-FR/_languagepack.js

amdBuilder

module.exports.amdBuilder = function (localeRoot, m, cb) {...

  • localeRoot {String}: filesystem folder under which your COUNTRY/language directories reside
  • m {Array}: where m[1] is a language code (en) and m[2] is a country code (US)
  • cb {Function}: called as errback if any downstream errors, otherwise returns a String of the AMD module

About

Writes locale languagepack files in amd format

Resources

Stars

Watchers

Forks

Packages