Localization of Fluent.Ribbon texts #1225
-
I see that there are standard set of language localizations under RibbonLocalization, for example English.cs, Spanish.cs and so on. There are 2 questions, one is what is the correct way to add locale like en-US or en-GB,.... and other is how to override the translations of existing strings mainly where fallback text is used. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
If you want to add a localization for "en-US" or "en-GB" you can just create new classes inheriting from I don't fully understand the second part of your question. |
Beta Was this translation helpful? Give feedback.
-
I used slightly different approach where I set RibbonLocalization.Current.Localization = new MyLocalization(); |
Beta Was this translation helpful? Give feedback.
If you want to add a localization for "en-US" or "en-GB" you can just create new classes inheriting from
RibbonLocalizationBase
and add the attribute[RibbonLocalization("English (US)", "en-US")]
or[RibbonLocalization("English (GB)", "en-GB")]
.I don't fully understand the second part of your question.
If you want to add text for missing translations you can either create a PR here, or create your own localization classes where you provide/override them.