You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the Entity Type for labels, description, aliases and so on is Record<WmLanguageCode, …>. WmLanguageCode is only de but not something like de-ch which is also there.
Not sure how to model all the possible variations there or just to use string or type LanguageCode = string to help with code reading?
The text was updated successfully, but these errors were encountered:
/** Language code like de, en, fr but not de-ch */typeWmLanguageCode=typeoflanguages[number]// generated by script/** Language variant like de-ch */typeWmLanguageVariant=string// not sure if that's something possible to be scripted/** Language codes and language variants like de, de-ch, en, fr */typeWmLanguage=WmLanguageCode|WmLanguageVariant// something | string will be simplified to be string currently but its still better to use internally to understand what kind of string it is
Interestingly there is shortLang which splits at _ and not - which is used on labels, descriptions and so on. So probably both cases exist. Should be care about that or should we just use one type for both?
Currently the Entity Type for labels, description, aliases and so on is
Record<WmLanguageCode, …>
.WmLanguageCode
is onlyde
but not something likede-ch
which is also there.Not sure how to model all the possible variations there or just to use
string
ortype LanguageCode = string
to help with code reading?The text was updated successfully, but these errors were encountered: