it

i18n-tag

📖 Simple i18n tagged template strings.

Showing:

Popularity

Downloads/wk

2

GitHub Stars

4

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

0.4KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

i18n tag

Simple i18n tagged template strings. Inspired by Jack Hsu's blog post.

Installation

npm install --save i18n-tag

Usage

i18n.js

import { createI18n } from 'i18n-tag';

const vocabulary_ru = {
  '{0} parrots': '{0} попугаев'
};

export default createI18n(vocabulary_ru);

index.js

import i18n from './i18n';

const n = 38;

console.log(i18n`${n} parrots`);

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100