public static function AdsenseAdBase::adsenseLanguages in Google AdSense integration 8
List of available languages.
Return value
array array of language options with the key used by Google and description.
Overrides AdsenseAdInterface::adsenseLanguages
1 call to AdsenseAdBase::adsenseLanguages()
- AdsenseMainSettings::buildForm in src/
Form/ AdsenseMainSettings.php - Form constructor.
File
- src/
AdsenseAdBase.php, line 201
Class
- AdsenseAdBase
- Base class for the AdsenseAd plugins.
Namespace
Drupal\adsenseCode
public static function adsenseLanguages() {
return [
'ar' => t('Arabic'),
'bg' => t('Bulgarian'),
'ca' => t('Catalan'),
'zh-Hans' => t('Chinese Simplified'),
'zh-TW' => t('Chinese Traditional'),
'hr' => t('Croatian'),
'cs' => t('Czech'),
'da' => t('Danish'),
'nl' => t('Dutch'),
'en' => t('English'),
'et' => t('Estonian'),
'fi' => t('Finnish'),
'fr' => t('French'),
'de' => t('German'),
'el' => t('Greek'),
'iw' => t('Hebrew'),
'hi' => t('Hindi'),
'hu' => t('Hungarian'),
'is' => t('Icelandic'),
'in' => t('Indonesian'),
'it' => t('Italian'),
'ja' => t('Japanese'),
'ko' => t('Korean'),
'lv' => t('Latvian'),
'lt' => t('Lithuanian'),
'no' => t('Norwegian'),
'pl' => t('Polish'),
'pt' => t('Portuguese'),
'ro' => t('Romanian'),
'ru' => t('Russian'),
'sr' => t('Serbian'),
'sk' => t('Slovak'),
'sl' => t('Slovenian'),
'es' => t('Spanish'),
'sv' => t('Swedish'),
'th' => t('Thai'),
'tr' => t('Turkish'),
'uk' => t('Ukrainian'),
'vi' => t('Vietnamese'),
];
}