-
Notifications
You must be signed in to change notification settings - Fork 266
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
Better example for v2 #101
Comments
I do think there are improvements I can and should make to the doc in the README. I think a few of your questions are answered by the package documentation. Did you read that?
https://godoc.org/github.com/nicksnyder/go-i18n/v2/i18n#NewBundle It is the default language for your application.
https://godoc.org/github.com/nicksnyder/go-i18n/v2/i18n#NewLocalizer
https://godoc.org/github.com/nicksnyder/go-i18n/v2/i18n#Bundle
|
Thanks! So,
The TOML files -- in the example -- aren't using a .toml file. Right? I could just be missing something. PS the links in the README are pointing to the V1 examples. |
Thanks for reporting! Fixed in 481274b.
You are right. I meant to add an example TOML file for another language but forgot. I will update that example. |
Going to close this. Let me know if you have any other suggestions for doc improvements. |
Could you make a more thorough example for V2?
I'm not sure why NewBundle accepts
language.English
when laterAccept-Language
is used as an input. What is a bundle, for that matter?RegisterUnmarshalFunc
is set totoml
. Where is there any TOML used?The text was updated successfully, but these errors were encountered: