authgear / authgear-server

Open source alternative to Auth0 / Firebase Auth
https://www.authgear.com
Apache License 2.0
81 stars 37 forks source link

Translation for major East/South-East Asian and European languages #4131

Closed fungc-io closed 4 months ago

fungc-io commented 5 months ago

Goal

To provide basic support in the AuthUI for major languages in East/South-East Asian and European languages. So the languages can be used out-of-the-box instead of users' need to translate the file manually.

Approach

Use Claude to Translate the transtion.json file.

The model I used was claude-3-haiku-20240307

Prompt I tried:

- translate the values in the JSON from English into {the language}.
- Don't translate the phrase "Passkey", keep it as is. 
- Return only the JSON and nothing else

Due to token limits, the file should be translated 60 lines at a time.

Appetite

2 days

East/South-East Asian

European

linear[bot] commented 5 months ago

DEV-1222 Translation for major East/South-East Asian and European languages

fungc-io commented 4 months ago

@louischan
There are 2 empty entry in the language list, probably from "ES" and "PT"

image.png

There are some problem with the language resolver. It does not respect the "Accept-Language" and is always using the "Default" language.

Accept-Language: ko (Korean) in Request Header:

image.png

My Language settings in Chrome:

image.png

Config in Authgear:

image.png
louischan-oursky commented 4 months ago

If you hard-refresh, the first problem should be solved.

fungc-io commented 4 months ago

ok 🆗 it's gone