cozy-i18n-helper

0.0.4 • Public • Published

I18N Helper

Helper library for i18n in cozy. Retrieve the cozy locale from the DataSystem

Requirements

Add CozyInstance to your app's permission

Usage :

 
# Middleware (express) 
app.use require('cozy-i18n-helper').middleware
 
# Mounted (Compound) 
require('cozy-i18n-helper').mount compound
 

Client Side

 
$.ajax 'cozy-locale.json',
  success: (data) -> #data= {locale: ja} 
 

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    1
  • 0.0.3
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i cozy-i18n-helper

Weekly Downloads

1

Version

0.0.4

License

BSD

Last publish

Collaborators

  • aenario
  • mycozycloud