mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-05 14:38:05 +02:00
npm run translations
This commit is contained in:
@@ -197,6 +197,8 @@ function getLanguage(resourceId) {
|
||||
return async (code, callback) => {
|
||||
try {
|
||||
code = code.replace(/-/g, '_');
|
||||
function delay(t) { return new Promise(resolve => setTimeout(resolve, t)); }
|
||||
await delay(Math.random() * 60000);
|
||||
const url = await transifexApi.ResourceTranslationsAsyncDownload.download({
|
||||
resource: {data:{type:'resources', id:`o:${transifexOrganization}:p:${transifexProject}:r:${resourceId}`}},
|
||||
language: {data:{type:'languages', id:`l:${code}`}},
|
||||
|
||||
Reference in New Issue
Block a user