瀏覽代碼

chore: pull translated messages

Gerald 5 年之前
父節點
當前提交
216e0da199
共有 1 個文件被更改,包括 3 次插入1 次删除
  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;
 }