Ver Fonte

chore: pull translated messages

Gerald há 5 anos atrás
pai
commit
216e0da199
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      scripts/transifex.js

+ 3 - 1
scripts/transifex.js

@@ -42,7 +42,9 @@ async function getLanguages() {
 }
 
 async function loadRemote(lang) {
-  const result = await transifexRequest(`/api/2/project/violentmonkey-nex/resource/messagesjson/translation/${lang}/?mode=onlyreviewed`);
+  // Reference: https://docs.transifex.com/api/translations#downloading-and-uploading-translations
+  // Use translated messages since we don't have enough reviewers
+  const result = await transifexRequest(`/api/2/project/violentmonkey-nex/resource/messagesjson/translation/${lang}/?mode=onlytranslated`);
   const reviewed = JSON.parse(result.content);
   return reviewed;
 }