New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@apitable/i18n

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apitable/i18n

i18n Locales with APITable power.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source

apitable-i18n-generator

APITable i18n is a a simple / easy-to-use / lightweight internationalization tool.

It provides:

  • Use APITable to visual edit i18n strings.
  • Use APITable Settings Generator to generate JSON settings.
  • Use Java and TypeScript SDK as an i18n runtime.

APITable-i18n has these advantages:

  • WYSIWYG: Edit multi-languages on APITable's spreadsheet experience.
  • Slim: Few codes and small.
  • High Performance: Loader separated, support dynamic load easily.
  • Extensible: OOP-design.

Template

You can get an APITable template that use for your i18n.

https://apitable.com/template/i18n

Generator

npx apitable-i18-generator --url http://apitable.com/dstYOURSTRINGSTABLE --token ${YOUR_APITABLE_TOKEN} --output ./i18n-generated

Then you will get:

  • locales.json
  • locales.interface.ts

SDKs

TypeScript

Install APITable i18n generator:

npm i --save @apitable/i18n

Import to your project:

import { I18N } from '@apitable/i18n';
const languagePacks = require('locales.json');
const i18n = I18N.createByLanguagePacks(languagePacks, getLanguage());

console.log(i18n.getText("string:keyname"));

Java

// build.gradle
dependencies {
   compile group: 'com.apitable', name: 'i18n', version: '1.0.0'
}

Development

yarn
yarn build

Keywords

FAQs

Package last updated on 28 Nov 2022

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