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
How come all of the examples are unilingual? #105
Comments
@user453584 have you looked at the formatjs.io website? It offers more information and working examples which allow you to switch locales: |
These examples are helpful, but I'm so new that I feel like it a very basic "hello world" type example (e.g. translating "hello" to "hola") would still be helpful. Also, is there source for the examples on the site available on Github somewhere? |
@user453584 the website is open source as well https://github.com/yahoo/formatjs-site/ |
Hey, sorry if this isn't helpful, but I just wanted to +1 this issue--I've been scouring the formatjs.io website but can't find any documentation on the "schema" for the I get the impression that As for the var messages = {
en: {
GREETING: 'Hello {name}'
},
fr: {
GREETING: 'Bonjour {name}'
}
}; The variable is called These conflicting concepts make it quite unintuitive for me to figure out what the "proper" way to provide data for multiple locales would be. I can certainly think of ways to make my app show different locales, but as @user453584 mentioned, a simple "hello world" style example would be really helpful. Also, @redonkulus mentioned that the working examples on the website allow you to switch locales, which is great, but the actual source code listed for them--specifically, the definition of |
Things should be less confusing in the next big release. Sorry. |
Ah, cool! Sorry, I didn't mean to sound ungrateful or anything--overall I really appreciate this tool and the documentation is excellent. This was just the one sticking point that was confusing me. 😁 Looking forward to the next release! |
+1 |
+1 on this request! Love the library but would love some more comprehensive docs. @ericf do you have any WIP docs we can look at? Or something to point us in the right direction? Happy to help out with this project also |
+1 tagging self for next release. |
I thought the same things what @toolness mentioned in his comment when I tried to figure out how to handle more languages, so a big +1! |
+1 An example that used, for example
|
+1 for this |
+1 |
No need for +1 comments. |
See: #162 |
Just getting started with this library, and can't seem to find any code examples that provide more than one output language.
For example, the "comprehensive example" in the readme only includes English.
Am I missing something?
The text was updated successfully, but these errors were encountered: