UNPKG

kepler.gl

Version:

kepler.gl is a webgl based application to visualize large scale location data in the browser

49 lines (45 loc) 4.4 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.LOCALE_CODES = exports.LOCALES = void 0; var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // SPDX-License-Identifier: MIT // Copyright contributors to the kepler.gl project var LOCALES = exports.LOCALES = { en: 'English', fi: 'Suomi', pt: 'Português', es: 'Español', ca: 'Català', ja: '日本語', cn: '简体中文', ru: 'Русский' }; /** * Localization can be passed to `KeplerGl` via uiState `locale`. * Available languages are `en` and `fi`. Default language is `en` * @constant * @public * @example * ```js * import {combineReducers} from 'redux'; * import {LOCALE_CODES} from 'kepler.gl/localization'; * * const customizedKeplerGlReducer = keplerGlReducer * .initialState({ * uiState: { * // use Finnish locale * locale: LOCALE_CODES.fi * } * }); * * ``` */ var LOCALE_CODES = exports.LOCALE_CODES = Object.keys(LOCALES).reduce(function (acc, key) { return _objectSpread(_objectSpread({}, acc), {}, (0, _defineProperty2["default"])({}, key, key)); }, {}); //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJMT0NBTEVTIiwiZXhwb3J0cyIsImVuI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