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

@abtasty/editor-translations

Package Overview
Dependencies
Maintainers
22
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abtasty/editor-translations

Module containing translations for editor & widget form generator projects

  • 0.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-63.64%
Maintainers
22
Weekly downloads
 
Created
Source

Google sheets translations

Translations file is located here: https://docs.google.com/spreadsheets/d/13U-j06aW_8FQfhopBrgGHjMNmWjN0UaUaNl5qm12lGg/edit?pli=1#gid=675474690

To run the update command, please, ensure that your node version is about 12 and do:

npm run update:translations

Transifex translations

Converting manually the translation files

The translation files from Transifex are in a GetText format and need to be converted to JSON. There's a gettext converter package that can do it.

You can use it like so:

$ i18next-conv -l en_GB -s abtasty-widgets_en_GB.po -t abtasty-widgets_en_GB.json

Using the translation

We're using the React Intl package for the internationalisations. It wraps our app in a Context Provider, that you can access anywhere in the tree by importing. A very simple usage example:


intl.formatMessage({id: 'translationKey'});

// OR

useTranslation(translationKey, lang);

FAQs

Package last updated on 16 Feb 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