Google Maps locales
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
A README file for the google-maps-locales code repository. View Code
Google Maps locales.
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"