Join us to discuss the challenges, solutions and best practices for in-house JavaScript code sharing. Tuesday, 12/17 at 10am PT/1pm ET.Sign up here »

i18nc-key-trim

1.0.7 • Public • Published

I18NC-KEY-TRIM

NPM Version NPM Downloads NPM License

Install

npm install i18nc i18nc-key-trim --save

Usage

var i18nc = require('i18nc');
require('i18nc-key-trim')(i18nc);
 
var info = i18nc('var str="<span> 中文 词典 </span>"', {pluginEnabled: {keyTrim: true}});
console.log(info.code);  // var str='<span> '+I18N('中文 词典')+' </span>';

Install

npm i i18nc-key-trim

DownloadsWeekly Downloads

34

Version

1.0.7

License

MIT

Unpacked Size

3.07 kB

Total Files

3

Last publish

Collaborators

  • avatar