[Feature] Translate the Cloud layout views (the cloud.* keys)
Describe the feature
The Cloud views call t('cloud.…') || 'English fallback' through the tx
wrapper in cloud.js, which turns a missing key into the fallback. None of
the 234 cloud.* keys exist in translations.js yet, so every language shows
the English fallbacks.
I'd like to add them view by view (dashboard, instance list and detail, SDN, firewall, ...): en taken from the fallbacks, pl translated, the other languages left to you as before. For most keys that needs no change in the views themselves.
Use Case
Apart from the sidebar (#1187), the Cloud layout is still English in every language.
Alternatives considered
Three things I'd rather settle with you first:
- 26 keys have different fallbacks in different places, e.g.
cloud.runningis "Running guests" on the KPI card and "Running" in the utilization breakdown,cloud.ramis Memory / RAM / RAM allocated. One key holds one English text, so either the extra uses get their own key (a small change in cloud.js) or the texts are unified. Which do you prefer? - Once defined, the keys fall under the backfill test, so roughly 234 x 7 strings on your side. Is one PR per view fine for that?
- With a key in place, its
|| 'fallback'is never used. Leave them, or remove them view by view?
How important is this for you?
Would improve the Polish UI: the Cloud layout is still mostly English.
Checklist
- [x] I have searched existing issues and discussions to make sure this hasn't been requested before
- [x] I understand this is a wishlist and not a work order — volunteers decide what gets built, and when
- [x] I'm aware that "this should be easy, it's only a few lines" has never once turned out to be true 🪄
Hi, thanks for asking before starting, that saves a round for both of us.
- Different texts: give them their own keys, e.g.
cloud.runningGuestsnext tocloud.running. One key, one English text, and the small change in cloud.js for that is fine. - One PR per view works well for us, smaller ones are easier to review. Like with #1187, we fill in the other seven languages when we land each one.
- The
|| 'fallback'parts: leave them for now. Once a key is defined they are never used, and keeping them keeps your diffs small and the views that are not done yet working throughtx.
Looking forward to it.
I saw the cloud-layout-redesign branch (584993d): it uses 568 cloud.* keys, about 350 of them defined in de only. I'll hold the next Cloud PRs (the shared pager / search / status chip piece and the remaining views) until it lands on Testing, so they don't collide with the rewrite. After that I'd continue with pl view by view, the same way as #1198 and #1215. Does that work for you, or would you rather have the pl keys against the branch already?
Hi, holding sounds right to me. That branch is still moving (it was rebased today and has since picked up English base texts for its Cloud keys), so pl keys against it now would most likely need a second pass. Once it has settled, carrying on view by view like #1198 and #1215 works well for us.