- π©πͺGermany chr.fritsch π©πͺπͺπΊπ
What about adding a simple map?
The issue is what Drupal core calls "zh-hans", select2 library calls "zh-CN". So Select2's own messages remain English for Chinese user interface language.
Configure a multilingual site, Select2 UI elements get translated into French, Spanish, etc, but not to Chinese.
Patch the underlying library to satisfy the missing language code.
A composer.json
snippet inside patches
"npm-asset/select2": {
"Harmonize locale names with Drupal core": "patches/select2-zh-hans.patch"
}
and a patch for the library solves this inconsistency. Symlinking zh-CN.js
file is not enough, it contains a language code ID. That's why Drupal-level string and replace won't work either.
Figure out how to make it maintainable on the long run.
Not applicable.
Not applicable.
Not applicable.
Needs review
1.0
User interface
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
What about adding a simple map?