Skip to content

wix-incubator/facebook-locales

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"