peterkahl/season-info-multilingual

Translates name of season to 16 languages and scripts.

v2.0.1 2019-10-12 07:12 UTC

README

Downloads License If this project has business value for you then don't hesitate to support me with a small donation.

Translates name of season into 18 languages and scripts.

  • Arabic (عربى)
  • Czech (čeština)
  • German (Deutsch)
  • Danish (dansk)
  • English GB
  • English US
  • Spanish (Español)
  • French (français)
  • Hebrew (עִברִית)
  • Italian (italiano)
  • Japanese (日本語)
  • Dutch (Nederlands)
  • Portuguese (Português)
  • Russian (русский)
  • Slovak (slovenčina)
  • Chinese simplified (中文简体)
  • Chinese traditional (中文繁體)
  • Welsh (Cymraeg)

Usage

usee peterkahl\SeasonInfo\SeasonInfo;

echo SeasonInfo::getName('autumn', 'en-us'); # fall

echo SeasonInfo::getName('autumn', 'en-gb'); # autumn

echo SeasonInfo::getName('spring', 'it');    # primavera

echo SeasonInfo::getName('spring', 'fr');    # printemps

echo SeasonInfo::getName('spring', 'ru');    # весна

echo SeasonInfo::getName('spring', 'cy');    # gwanwyn

echo SeasonInfo::getName('spring', 'zh-cn'); # 春天

echo SeasonInfo::getName('winter', 'ja');    #