Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@ui-grid/i18n
Advanced tools
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.
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');
You can find an example of our language packs in action on our website
Documentation for the i18nService is provided in the api documentation.
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.
FAQs
This package provides various language translations for ui-grid
The npm package @ui-grid/i18n receives a total of 110 weekly downloads. As such, @ui-grid/i18n popularity was classified as not popular.
We found that @ui-grid/i18n demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.