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) appuse require'cozy-i18n-helper'middleware # Mounted (Compound) require'cozy-i18n-helper'mount compound
Client Side
$ajax 'cozy-locale.json' : #data= {locale: ja}