kirbydesign / designsystem

Kirby Design System
https://cookbook.kirby.design
MIT License
85 stars 23 forks source link

[Enhancement] Add localization/translation of internal labels #3694

Open RasmusKjeldgaard opened 2 weeks ago

RasmusKjeldgaard commented 2 weeks ago

Describe the enhancement

Some labels and text content inside components should have proper translations according to our supported locale. For instance, the previous/next month buttons of kirby-calendar or the close button of the modal are hidden from consumers of the component, and we should add a sensible translation.

Describe the solution you'd like

Should be researched! Shoelace has some considerations that are worth exploring: https://shoelace.style/getting-started/localization

Have you considered any alternatives?

If we choose to bake in the translations, consumers will not have to import translation assets into their own projects, and configure kirby. It will just work out of the box. But a trade-off is that new or custom translations cannot be added easily by projects. Consider adding an option to override the default translations per locale.

Are there any additional context?

This is an initial list of identified translations:


Checklist:

The following tasks should be carried out in sequence in order to follow the process of contributing correctly.

Refinement

Implementation

The contributor who wants to implement this issue should:

Review

Once the issue has been implemented and is ready for review: