catberry / catberry-l10n

Localization module for catberry framework
https://catberry.github.io/
Other
3 stars 1 forks source link

File watch not working #18

Closed vizo closed 8 years ago

vizo commented 8 years ago

When i change l10n json files, they are not reloaded. I checked source and on('change') event never fires. I need to manually restart server every time ...

Any idea?

Thanks.

rdner commented 8 years ago

Could you share more details about your environment? OS, filesystem, are you using a container or remote resource for publishing changes, etc.

rdner commented 8 years ago

Checked on OS X, works for me. How can I reproduce the issue? Could you describe some steps?

vizo commented 8 years ago

I am using Ubuntu 15.10. node --version v5.10.1

I did everything same like you have in docs. I am using locales stored in /l10n. I just generated it by catberry init example.

rdner commented 8 years ago

@vizo wait, if you mean l10n directory in your project's root it's not watched on purpose. The l10n directories inside components are watched. The root l10n directory is for global values which are rarely changed.

vizo commented 8 years ago

Ok, clear. Why we can't watch both? I rather use one file for each language. It's easier to give it to translator to translate ...

rdner commented 8 years ago

Global l10n directory is kinda a backup option. I would put such kind of files to a document component then. But the best practice is to separate the files by components having isolated components published to a shared repo across several teams.

vizo commented 8 years ago

Ok thanks for explanation.