Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

cozy/cozy-i18n-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}

About

Helper library for i18n in Cozy Application

Resources

Stars

Watchers

Forks

Packages

No packages published