-
-
Notifications
You must be signed in to change notification settings - Fork 519
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
Provide instructions for i18n #403
Comments
Hi. I managed to make a danish translation years back. I am not sure if the api has changed since then (I am still using an old version). This is how I did it in Angularjs.
|
Hi Michael. Thank you for this, will take a look a it. |
@arturo-ojeda Hello sir, could you solve this issue according to michaelkrog's answer? |
Sorry @blogui91 , nope, I ended up going with a different solution. |
What was your solution? |
@iamkinetic , the solution in our case was a bit hacky and only used a sub-set of the rrule spec, that's why I believe it wasn't useful to share it over here because it is not reusable and is only specific to our use case. I'm not working in that project anymore so I don't have access to the code we used, but I believe it wouldn't be useful for other projects anyway. |
Hi there.
I was trying to add localization for Spanish today but found it to be a bit hard.
At fist, I thought I just needed to add an SPANISH Language constant on i18n.ts, translate it and export it. I was then able to import it on my test cases but only the translated dayNames and monthNames worked, not the tokens.
The main idea was to translate the toText() method but I figured that I could maybe perform the full job and translate it for parsing too but neither method worked.
This is one example of one of the test results:
What is not clear to me is how to translate the tokens. I tried using some breakpoints to understand it but I didn't get it so I thought maybe I should ask.
I tried translating a token's key, value and both, without getting a positive result.
I'll be glad to complete a full translation if more instructions are provided on how to do it.
Thanks.
The text was updated successfully, but these errors were encountered: