Skip to content

OnlineBuddies/replace-i18n

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

replace-i18n

Replaces calls to a function __ with replacements from a dictionary.

An example. Given a test.js like so:

console.log(__("HELLOWORLDKEY"));

And a dictionary.tsv like so:

"Key"	"English"
"HELLOWORLDKEY"	"Hello, World"

Running replace-i18n.js -l en -d dictionary.tsv < test.js > test.en.js gives an output file like so:

console.log("Hello, World");

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors