-
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
read translations from string? #18
Comments
Can you describe why you want to do this and/or the advantages of using go-bindata over the current approach of loading a JSON file at runtime? |
because i think its simpler to distribute a single binary to the enduser then needing them to have a setup folder structure with JSON Files. i'm currently useing a "workaround" like this:
|
I added ParseTranslationFileBytes, which should give you what you want. Reopen if that doesn't work for you. |
works perfectly, thanks :) |
I would love to include my translated files with
go-bindata
thus not providing access to a file but a string/byte pointer of the file content.Is there a way i can load translations from string or an
go-bindata
Asset?see: https://github.com/jteeuwen/go-bindata
The text was updated successfully, but these errors were encountered: