Socket
Socket
Sign inDemoInstall

cozy-i18n-helper

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cozy-i18n-helper

A helper to handle i18n in your cozy application


Version published
Maintainers
2
Created
Source

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}

FAQs

Package last updated on 14 Oct 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc