Full documentation
install:
npm i @plasma-platform/service-locales -S
Short documentation
Table of Contents
ServiceLocales
Locales API
getLocales
Get list of all TM locales
Examples
(async () => {
const service = new Service(url);
const request = await service.getLocales();
})();
Returns Promise<any>
getLocale
Get locale by ico2 code
Parameters
-
code
string Locale ico2 code
Examples
(async () => {
const service = new Service(url);
const request = await service.getLocale(code);
})();
Returns Promise<any>