facebook-locales
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/facebook-locales package

1.0.916 • Public • Published

facebook-locales

NPM version Downloads

Maps locales to Facebook locales.

Usage

Install the library with npm install facebook-locales

var FacebookLocales = require('facebook-locales');
 
FacebookLocales.bestFacebookLocaleFor("en_US"); //-> "en_US"
FacebookLocales.bestFacebookLocaleFor("fr_FR"); //-> "fr_FR"
FacebookLocales.bestFacebookLocaleFor("es_AR"); //-> "es_LA"
FacebookLocales.bestFacebookLocaleFor("ar_EG"); //-> "ar_AR"

Package Sidebar

Install

npm i facebook-locales

Weekly Downloads

391

Version

1.0.916

License

Apache-2.0

Unpacked Size

27.8 kB

Total Files

12

Last publish

Collaborators

  • arielh
  • falconci
  • yurynix
  • itai.benda
  • wix-ci
  • wix-ambassador
  • shahata
  • netanelgilad
  • wix-ci-publisher
  • wix-bi-publisher