Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    cozy-i18n-helperpublic

    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} 
     

    Keywords

    none

    install

    npm i cozy-i18n-helper

    Downloadslast 7 days

    5

    version

    0.0.4

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar
    • avatar