Skip to content
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

feature request: Arb format for strings #57

Closed
joeblew99 opened this issue Nov 9, 2016 · 5 comments
Closed

feature request: Arb format for strings #57

joeblew99 opened this issue Nov 9, 2016 · 5 comments

Comments

@joeblew99
Copy link

I was wondering if we can support ARB format, so i can use google translate toolkit.

Here is a good summary:
https://github.com/dart-lang/intl#extracting-and-using-translated-messages

Background info:
At the moment i use Dart for frontend and golang for backend.

@nicksnyder
Copy link
Owner

I clicked through the links and couldn't find an example of what an ARB file looks like or a spec for the ARB format. If you know where these are can you share?

@joeblew99
Copy link
Author

thanks for considering this feature.
I think it is pretty nice wy to share translations between frontend and backend.

I looked around for some examples of ARB.

This is a good example i think.
https://github.com/flutter/flutter/tree/master/examples/stocks/lib/i18n
https://github.com/flutter/flutter/blob/2a81391915a5b223279f117d9143ed483b8482e4/examples/stocks/lib/stock_strings.dart

Also running Dart is very easy. Brew install it and it will do everything, and then "pub get". like "go get".

@nicksnyder
Copy link
Owner

nicksnyder commented Nov 19, 2016

Hmm, it doesn't look like this format supports plural forms so I don't think it is an appropriate format for what go-i18n does.

If you only want to store your translations in one format, I would either (1) write a script to translate from one to the other, or (2) write Go code to parse ARB files and then use AddTranslation.

@joeblew99
Copy link
Author

make sense. I will do it myself. DO you want a patch ? Its ok if you dont..

On Sat, Nov 19, 2016 at 7:42 PM Nick Snyder notifications@github.com
wrote:

Hmm, it doesn't look like this format supports plural forms so I don't
think it is an appropriate format for what go-i18n does. If you only want
to store your translations in one format, I would write a script to
translate from one to the other.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#57 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALcacytXmiICL4PubsU3NkQhWmPLd2elks5q_0MlgaJpZM4KtUMI
.

@nicksnyder
Copy link
Owner

Probably not, thanks for offering though.

I am going to go ahead and close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants