function _views_timelinejs_language_map in Views TimelineJS integration 8.3
Same name and namespace in other branches
- 7.3 views_timelinejs.module \_views_timelinejs_language_map()
Returns an array of Drupal language codes mapped to TimelineJS codes.
Return value
array An array of language codes supported by TimelineJS, keyed by the equivalent Drupal language code.
1 call to _views_timelinejs_language_map()
- TimelineJS::prepareLanguageOption in src/
Plugin/ views/ style/ TimelineJS.php - Sets the timeline language option to the site's current language.
File
- ./
views_timelinejs.module, line 216 - Views TimelineJS API, theming, libraries, etc.
Code
function _views_timelinejs_language_map() {
return [
'cs' => 'cz',
'nb' => 'no',
'nn' => 'no',
'pt-pt' => 'pt',
'zh-hans' => 'zh-cn',
'zh-hant' => 'zh-cn',
];
}