forked from public/swade-fr-content
Prepare transation
This commit is contained in:
@ -7,7 +7,7 @@ const __compFolderTranslation = [
|
||||
{source: 'Aircraft', translation: 'Avions' },
|
||||
{source: 'Civilian', translation: 'Civils' },
|
||||
{source: 'Modern Military Aircraft', translation: 'Avions Militaires Modernes' },
|
||||
{source: 'World War II Military Aircraft', translation: 'Avions Militaires Seconde Guerre Mondiale' },
|
||||
{source: 'World War II Military Aircraft', translation: 'Avions Seconde Guerre Mondiale' },
|
||||
]
|
||||
}
|
||||
]
|
||||
@ -20,7 +20,7 @@ class FolderTranslate {
|
||||
let pack = game.packs.get(tData.compendium);
|
||||
let wasLocked = false;
|
||||
if (pack.locked) {
|
||||
pack.configure({locked: false})
|
||||
await pack.configure({locked: false})
|
||||
wasLocked = true;
|
||||
}
|
||||
let folders = await game.CF.FICFolderAPI.loadFolders(tData.compendium);
|
||||
@ -32,7 +32,7 @@ class FolderTranslate {
|
||||
}
|
||||
}
|
||||
if ( wasLocked) {
|
||||
pack.configure({locked: true})
|
||||
await pack.configure({locked: true})
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -138,6 +138,6 @@ const subFolder = { 'Social Edges': 'Atouts sociaux', 'Background Edges': 'Atout
|
||||
/************************************************************************************/
|
||||
Hooks.once('ready', () => {
|
||||
|
||||
FolderTranslate.translateFolders()
|
||||
//FolderTranslate.translateFolders()
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user