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

@superset-ui/translation

Package Overview
Dependencies
Maintainers
3
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@superset-ui/translation

Superset UI translation

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
62
decreased by-30.34%
Maintainers
3
Weekly downloads
 
Created
Source

@superset-ui/translation

Version

i18n locales and translation for Superset

SupersetTranslation

Example usage
import { configure, t } from '@superset-ui/translation';

configure({
  languagePack: {...},
});

console.log(t('text to be translated'));
API

configure({ [languagePack] })

  • Initialize the translator
  • Initialize with the default language if no languagePack is specified.

t(text[, args])

  • Translate text when no args is provided.
  • Translate text and substitute args into the placeholders specified within text.

For example

t('Hello %(name)s', user)

See sprintf-js for more details on how to define placeholders.

Development

@data-ui/build-config is used to manage the build configuration for this package including babel builds, jest testing, eslint, and prettier.

Keywords

FAQs

Package last updated on 24 Oct 2018

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