You are here

public function TwitterWidget::getAvailableLanguages in Twitter Embed 8

Get all available languages.

Return value

array Array of languages.

Overrides TwitterWidgetInterface::getAvailableLanguages

2 calls to TwitterWidget::getAvailableLanguages()
TwitterButtonWidget::getSettingsForm in src/TwitterButtonWidget.php
Get the settings form for a widget.
TwitterTimelineWidget::getSettingsForm in src/TwitterTimelineWidget.php
Get the settings form for a widget.

File

src/TwitterWidget.php, line 15

Class

TwitterWidget
Class TwitterWidget.

Namespace

Drupal\twitter_embed

Code

public function getAvailableLanguages() {
  return [
    '' => t('Automatic'),
    'en' => t('English (default)'),
    'ar' => t('Arabic'),
    'bn' => t('Bengali'),
    'cs' => t('Czech'),
    'da' => t('Danish'),
    'de' => t('German'),
    'el' => t('Greek'),
    'es' => t('Spanish'),
    'fa' => t('Persian'),
    'fi' => t('Finnish'),
    'fil' => t('Filipino'),
    'fr' => t('French'),
    'he' => t('Hebrew'),
    'hi' => t('Hindi'),
    'hu' => t('Hungarian'),
    'id' => t('Indonesian'),
    'it' => t('Italian'),
    'ja' => t('Japanese'),
    'ko' => t('Korean'),
    'msa' => t('Malay'),
    'nl' => t('Dutch'),
    'no' => t('Norwegian'),
    'pl' => t('Polish'),
    'pt' => t('Portuguese'),
    'ro' => t('Romanian'),
    'ru' => t('Russian'),
    'sv' => t('Swedish'),
    'th' => t('Thai'),
    'tr' => t('Turkish'),
    'uk' => t('Ukrainian'),
    'ur' => t('Urdu'),
    'vi' => t('Vietnamese'),
    'zh-cn' => t('Chinese (Simplified)'),
    'zh-tw' => t('Chinese (Traditional)'),
  ];
}