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

Localization/translation? #1

Closed
Repsionu opened this issue Oct 25, 2020 · 9 comments
Closed

Localization/translation? #1

Repsionu opened this issue Oct 25, 2020 · 9 comments

Comments

@Repsionu
Copy link
Contributor

Repsionu commented Oct 25, 2020

I know that this superb project is still in early beta stage :-)
But for everyday use by family it would be nice to have native language setup (OK thanks to lokalise we have a frontend native language for Alarm Panel at least)- as some of them are smart enough to add/delete something (with permissions but not enough English knowledge :-( )
That would make a great WAF effect :-)
Best, JR

@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.94. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@nielsfaber
Copy link
Owner

I am currently changing the frontend quite a bit, all texts in the panel will be loaded from a localize file.
So preparations are being made for supporting multi-language UI.

I think its still a bit early-stage to start rolling out translations though...
Chances are that the files need to be revised often.

Eventually this is up to the volunteers/enthousiasts themselves to decide...
I will keep you posted if I have made more progress here.

@nielsfaber
Copy link
Owner

Are you still interested in using Alarmo and helping out with the translation?
I think in the meantime the 'dust has settled', the UI will not change much now.

@mccoy88f
Copy link
Contributor

mccoy88f commented Dec 2, 2020

Hi, i can help you to translate in italian if you want.
Contact me if you want :-)

@nielsfaber
Copy link
Owner

@mccoy88f if you want to contribute with a translation, please take this file as starting point: https://raw.githubusercontent.com/nielsfaber/alarmo/main/custom_components/alarmo/frontend/localize/languages/en.json

If you replace all texts by Italian translation, it can be added.
You can also propose improvements for the original English file.

@mccoy88f
Copy link
Contributor

mccoy88f commented Dec 2, 2020

Ok i Will work on It this night 💪

@mccoy88f
Copy link
Contributor

mccoy88f commented Dec 2, 2020

Is there a way to test it locally on my ha? I have a alpha version :-)

nielsfaber pushed a commit that referenced this issue Dec 3, 2020
@nielsfaber
Copy link
Owner

Is there a way to test it locally on my ha? I have a alpha version :-)

Yes there is, but it is not trivial.
If you make a full checkout of this repository, you can make changes to the frontend.
You will need to have node.js / npm + some packages to be able to work with it.
If you run npm install and then npm start (from the /frontend/ directory), the script should automatically recompile the typescript files when you make a change.
You could replace the en.json with your italian version, or add yours and update the localize.ts.

If you don't want to go through this trouble, you can also just open a PR with your it.json.
You can see the results when a next update is released.

nielsfaber pushed a commit that referenced this issue Dec 10, 2020
Publish state to MQTT with retain flag
@nielsfaber
Copy link
Owner

I will close this issue since the translation of @Repsionu is now in place.
More translations are always welcome, if help is needed let me know.

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

3 participants