mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-08-07 01:13:08 +02:00
Updated translations
This commit is contained in:
@@ -91,6 +91,7 @@ const callTranslationService = async (body, locale) => {
|
||||
|
||||
if (apiUrl && transKey && location) {
|
||||
if (keysToTranslate.length > 0) {
|
||||
console.log(` - Translating: ${keysToTranslate.length}`);
|
||||
const body = JSON.stringify(keysToTranslate.map(key => ({ text: key.value })));
|
||||
const data = await callTranslationService(body, locale);
|
||||
|
||||
@@ -119,7 +120,6 @@ const callTranslationService = async (body, locale) => {
|
||||
|
||||
const pkgFiles = glob.sync(path.join(__dirname, '../package.nls.*.json'));
|
||||
|
||||
|
||||
console.log(``);
|
||||
console.log(`Starting nls bundles`);
|
||||
for (const file of pkgFiles) {
|
||||
@@ -160,6 +160,7 @@ const callTranslationService = async (body, locale) => {
|
||||
|
||||
if (apiUrl && transKey && location) {
|
||||
if (keysToTranslate.length > 0) {
|
||||
console.log(` - Translating: ${keysToTranslate.length}`);
|
||||
const body = JSON.stringify(keysToTranslate.map(key => ({ text: key.value })));
|
||||
const data = await callTranslationService(body, locale);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user