cozy-i18n-helper

A helper to handle i18n in your cozy application

I18N Helper

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

Add CozyInstance to your app's permission

 
# Middleware (express) 
app.use require('cozy-i18n-helper').middleware
 
# Mounted (Compound) 
require('cozy-i18n-helper').mount compound
 
 
$.ajax 'cozy-locale.json',
  success: (data) -> #data= {locale: ja}