-
Notifications
You must be signed in to change notification settings - Fork 277
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
example ? #27
Comments
I agree a sample project would be useful. Did you read the godoc for the goi18n command and i18n package? There are code examples there which should help. Basically just use the i18n package like you would use any other go package. It assumes that you have strings stored in a json file somewhere. The goi18n command helps you manage your json translation files. |
Hi Nick, I seem to have missed your reply earlier. The package is a good start indeed. |
I still think the package needs more explaining for slow learning people like me... For example:
So what happens if the translationID was not in the file ? I would prefer a list of those would be dumped somewhere so I can build a not yet existing translation of an existing package without going through all the files looking for strings that need translation.
In what way is the translationID recognized as being a plural form ? |
@Gys some answers to your questions:
|
I saw it but was not sure if it was just coincidence. Especially as the doc seemed to indicate the plural form is (also) in the translationID itself. Does that mean the plural should always be used inside the template as '.Count' and not something else ? |
Here is an example using two language files de-de.all.json and the default en-us.all.json:
|
Where the example reads |
v2 proposal includes an example web application. See #92 |
I just tagged 2.0.0.beta.1. Please start using it and report any issues that you have. |
Hello
I am looking for a way to build translation into a web-based project. I came across this and it really looks impressive. However, I have no idea where to start; I am puzzled how the whole framework is to be integrated in a project. It would be great if there was a minimum sample project somewhere, showing how this is done ?
The text was updated successfully, but these errors were encountered: