LangKeys.parse()

node v10.24.1
version: master
endpointsharetweet
const { Keyset, Key, ParamedKey, PluralKey, LangKeys } = require("@bem/sdk.keyset"); const { stripIndent } = require('common-tags'); const str = stripIndent` export const ru = { 'Time difference': 'Разница "во" времени', '{count} minute': { 'one': '{count} минута', 'some': '{count} минуты', 'many': '{count} минут', 'none': 'нет минут', }, }; `; const langKeys = await LangKeys.parse(str, 'taburet'); langKeys;
Loading…

no comments

    sign in to comment