-
-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YAML support #79
YAML support #79
Conversation
Sigh... Btw, in travis CI you also use 0.9 version, but it says: $ nvm use 0.9 Well... To be honest I have no freakin idea what the hell is wrong with CI 0.8 version. |
Will review thanks for contributing :) Von meinem iPhone gesendet
|
Sorry, when do you plan to review this? YAML is superior for translations. |
in fact I still need to check with some newer features like dot-notation that could be affected by this one |
I did not understand |
+1 for yaml support. My locales were reverted and everything were lose several times only because I misplaced an extra |
+1 for the yaml support, or extending the locales load method, so developer can pass his own. |
+1 |
Yay, almost 3 years and this is still not merged 😁 |
That's the deal with priorities
|
Is there anything I could help with, @mashpie? |
well I guess, conflicts are hard to resolve now. So e fresh PR adding that feature would be most usefull, including tests & docs. |
Well for those who don't want to wait for the PR to be merged, I wrote another translation module: https://github.com/aug-riedinger/i18n-node-yaml I used a different approach: files organised by content instead of by language. You get:
instead of having both:
and
Here are the immediate advantages I get:
Looking forward to having some feedback on this. |
+1 |
1 similar comment
+1 |
My PR #358 may be related to this. |
so... although not merged directly - will keep as todo for refactored backend project |
Pretty much what the title says.
I find YAML format to be way more readable.
Based my changes on initial pull request by "cjroth"
I see that you are running tests against many node.js versions on Travis ci, inluding 0.8
It can cause issues since I used "fs.existsSync", which, I believe is a part of new API.
Anyway... CI will show. If bad things happen I'll revert to using old fs.statSync.