-
Notifications
You must be signed in to change notification settings - Fork 991
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
Added ES locale #220
Added ES locale #220
Conversation
This is great. Thank you so much @zkat! One more quick thing, I noticed recently we missed a couple strings in the original locale implementation. Would you mind adding the following to "Show help": "<Your translation here>",
"Show version number": "<Your translation here>" |
Found another one: "Path to JSON config file": "<Translation needed>" Might want to wait until I finish reviewing all missing i18n lookups. 😔 |
Blimey! I think that's all. Sorry for the hiccup! "Path to JSON config file": "<Translation needed>",
"Show help": "<Your translation here>",
"Show version number": "<Your translation here>" @zkat If you wouldn't mind adding these to |
ping me again when you're done or tell @bcoe to poke me. :) I'll gladly On Mon, Aug 3, 2015, 12:05 Andrew Goode notifications@github.com wrote:
kat |
@zkat \o/ you're awesome. @nexdrew, perhaps you can sync up with @LoicMahieu too and get some additional French translation? |
@bcoe Sure. I was thinking I would attempt to add the French translation myself (via Google Translate, ick I know), and then see if @LoicMahieu would review the PR for us. Considering these additional strings, I have an interesting problem for the fix and would like your opinion. The problem is that we need to defer the y18n lookup until after the locale has been set, so that we get consistent behavior b/w these 2 scenarios: // locale defined BEFORE help option
var argv = require('yargs').locale('fr').help('h').argv
// locale defined AFTER help option
var argv = require('yargs').help('h').locale('fr').argv Here are the options for implementation that I see:
Since the 2nd seems kludgy, I am leaning towards the 1st. Thoughts? |
Actually, if we don't call Instead of managing state to keep track of what needs a y18n default description and the order in which it was inserted, I'm thinking it might be better to embed the state into the description itself as a special prefix (something like I know that sounds hacky, but it might simplify some things. I'm gonna give it a shot. |
That's all for now, thanks @zkat! |
Here you go <3