Hello! I’m trying to set up Ory Network log on, fo...
# ory-network
h
Hello! I’m trying to set up Ory Network log on, for a Norwegian website, with fallbacks for Swedish and Danish languages, but even though you list support for Norwegian, the page shows up in English, if I set my browser to Norwegian. If I set it to Danish or Swedish, the page is displayed in the correct language, but both languages have a significant grammatical error on the login page. So none of the Scandinavian languages are usable in production. Can I add my own translations?
m
Hey @happy-gigabyte-86723 thanks for the report. Yes you can add your own translations under console.ory.com/projects/current/account-experience/locales - hit the edit button there. If you feel like it you could also help us correct the Danish/Swedish translations: source is here I believe. Weird that it doesn’t pig up Norwegian though; I’ll let my colleague @bland-eye-99092 who is maintaining Ory Elements know.
h
Oooh, I didn’t see the edit button. Also, I’ve been trying to find the translation package, but didn’t know what project they were in. I think I saw that list of files there at some point, but those are just a small subset of the languages you support.
I think the issue is in
login.subtitle
where the translation is
Log ind med {parts}
, but the error is in how the
{parts}
is generated. Is it possible to configure that anywhere or do I simply need to hardcode my supported login methods?
m
I think I saw that list of files there at some point, but those are just a small subset of the languages you support.
Yea, I’m not 100% sure it’s the right file - I’ll check with Jonas where you could add fixes..
where the translation is
Log ind med {parts}
, but the error is in how the
{parts}
is generated.
You mean the order of {parts} is incorrect in Nordish languages or the content of parts?
h
Nordic languages are gendered and it is formatting the list of login options as “log in with X, Y or your Z”, but “your ID” is “dit ID/ditt ID” in Danish/Swedish, but it displays as “din ID” in both languages. If it simply said “Log in with X, Y or Z”, that would work in all of the languages.
m
Thanks that is very helpful!
I’ll check with the team that we can make some improvements there. It will take a while to go to production though, so if you need a fix right now you will have to hardcode your translation.
h
Actually, I’ve been going over it a few times in my mind. Just writing “X, Y or Z”, e.g. “Adgangsnøgle, sikkerhedsnøgle eller ID” would sound right, but you need to remove the “en” in front of “Adgangsnøgle” (access key) and “sikkerhedsnøgle” (security key) as well, for it to sound correct.
Without it, it becomes like saying “a Passkey, a security key or ID”, which sounds a little confusing without “your” in front of the ID part.
So they either all need a prefix (like you have now) or none of them should have it.
But thank you for taking the time. I’ll hardcode the options in my translations for now.
And I’ll be happy to contribute further translations, if you find out where I should submit them 🙂
🙏 1
m
Hey @happy-gigabyte-86723 here is the correct source: github.com/ory/elements/…/locales
🙌 1