UNPKG

@singleton-i18n/js-core-sdk

Version:

A JavaScript Singleton client library for internationalization and localization that leverage data from Singleton service. The library works both for the browser and as a Node.js module.

26 lines (25 loc) 922 B
"use strict"; /* * Copyright 2019-2022 VMware, Inc. * SPDX-License-Identifier: EPL-2.0 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.Constants = void 0; /** * Settings for different stages. */ class Constants { } exports.Constants = Constants; Constants.L10N_COMPONENT_API_ENDPOINT = '/i18n/api/v2/translation'; Constants.L10N_STRING_API_ENDPOINT = '/i18n/api/v2/translation'; Constants.I18N_API_ENDPOINT = '/i18n/api/v2/formatting/patterns'; Constants.L10N_LOCAL_API_ENDPOINT = '/i18n/api/v2/locale'; Constants.TRANSLATION_PATTERN = '/i18n/api/v2/combination/translationsAndPattern'; Constants.PSEUDO_TAG = '#@'; Constants.I18N_ASSETS_PREFIX = 'locale_'; Constants.L10N_ASSETS_PREFIX = 'translation_'; Constants.ASSETS_SUFFIX = '.json'; Constants.SOURCE_LANGUAGE = 'en'; Constants.SOURCE_REGION = 'US'; Constants.SOURCE_LOCALE = Constants.SOURCE_LANGUAGE + '-' + Constants.SOURCE_REGION;