npm install google-maps-locales

Google Maps locales

More from wix

wix npm packages

Find the best node modules for your project.

Search npm

react-native-calendars

React Native Calendar...

Read more
,

commons-validator-js

JavaScript port of Apache Commons...

Read more
,

react-native-notifications

Advanced Push Notifications (Silent, interactive notifications) for iOS &...

Read more
,

angular-tree-control

Angular Tree...

Read more
,

google-maps-locales

Google Maps...

Read more
,

pip-requirements-js

A robust parser for requirements...

Read more
,

facebook-locales

Maps locales to Facebook...

Read more

Dependencies

Core dependencies of this npm package and its dev dependencies.

lodash, babel, babel-core, babel-loader, babel-plugin-transform-strict-mode, babel-preset-es2015, babel-register, chai, mocha, webpack

Documentation

A README file for the google-maps-locales code repository. View Code

google-maps-locales

NPM version Downloads

Google Maps locales.

Usage

Install the library with npm install google-maps-locales

var GoogleMapsLocales = require('google-maps-locales');

GoogleMapsLocales.bestGoogleMapsLocaleFor("en_US"); //-> "en"
GoogleMapsLocales.bestGoogleMapsLocaleFor("en_GB"); //-> "en-GB"
GoogleMapsLocales.bestGoogleMapsLocaleFor("tl_PH"); //-> "fil"
GoogleMapsLocales.bestGoogleMapsLocaleFor("he_IL"); //-> "iw"