jeresig / i18n-node-2

Lightweight simple translation module for node.js / express.js with dynamic json storage. Uses common __('...') syntax in app and templates.
MIT License
507 stars 79 forks source link

Not work in electron #98

Closed gralance closed 7 years ago

gralance commented 7 years ago

Run i18n-node

node example.js works well , but not in main process in electron

gralance commented 7 years ago

Problem sovled, if your program may runned by other launcher, current working directory maybe changed. Just define directory like :

directory: __dirname + "/locales"
gjuchault commented 7 years ago

Thanks for the info :)