google-spreadsheet-translation-sync
Version:
A plugin to read and write i18n translationsfrom and to google spreadsheets
15 lines (11 loc) • 494 B
JavaScript
const formats = {
LOCALE_JSON: 'locale_json', // just a plain array - lorem.ipsum keys will be {'lorem.ipsum': 'whatever'}
JSON_STRUCTURE: 'json_structure', // lorem.ipsum keys will be converted into a json structure: {lorem: {ipsum: 'whatever'}}
GETTEXT: 'gettext',
WORDPRESS: 'wordpress',
PROPERTIES: 'properties',
YAML: 'yml'
};
module.exports.TRANSLATION_FORMATS = formats;
module.exports.translationFormats = Object.values(formats);
module.exports.commentCollumnName = '#';