Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ui-grid/i18n

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ui-grid/i18n

This package provides various language translations for ui-grid

  • 4.10.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
157
decreased by-7.1%
Maintainers
1
Weekly downloads
 
Created
Source

UI-Grid i18n

The language packs for UI-Grid. These are needed if you would like to use UI-Grid in a language other than English. Our language support is highly extensive, but also highly dependent on the greater UI-Grid community to remain up-to-date and accurate since the core team does not speak most of the supported languages.

All of the languages provided in this package can be used via the i18nService, which you can use to change the default language, add translations, or change existing translations.

Getting Started

You can install @ui-grid/i18n via:

npm i --save @ui-grid/i18n

Once you install you need to load the respective JS and CSS files as seen bellow:

<script src="/node_modules/@ui-grid/core/js/ui-grid.core.min.js">
<script src="/node_modules/@ui-grid/i18n/js/ui-grid.language.[YOUR_LANGUAGE_HERE].js"></script>
 
<!-- Alternatively you can load all languages provided with you grid by loading the following -->
<script src="/node_modules/@ui-grid/i18n/js/ui-grid.language.all.js"></script>

Alternatively, if you are using Webpack or RequireJS to load your dependencies, you can do the following at the top of the file that needs it:

require('@ui-grid/core');
require('@ui-grid/i18n'); // this loads all languages

Once you load the file, the easiest way to set the language is to use the ui-i18n directive in a div that contains the grid. However, only one ui-i18n directive is allowed, so the current language setting is stored in the i18n service (singleton) and there is currently no way to have more than one language per app.

<div ui-i18n="{{lang}}">

Another option to set the language is to use the i18nService and use the setCurrentLang method:

i18nService.setCurrentLang('fr');

Example

You can find an example of our language packs in action on our website

API Documentation

Documentation for the i18nService is provided in the api documentation.

Issues

You can find issues that are specific to localization in UI-Grid by looking for the label grid-i18n in the ui-grid github issues page.

License

MIT

Keywords

FAQs

Package last updated on 14 Jun 2021

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