Fix bestiary import
This commit is contained in:
parent
bc604a9159
commit
f52c533fde
@ -273,13 +273,13 @@ const __add_actors_translation = () => {
|
|||||||
if (lang == "fr") {
|
if (lang == "fr") {
|
||||||
let pack_array = [];
|
let pack_array = [];
|
||||||
for (let metadata of game.packs) {
|
for (let metadata of game.packs) {
|
||||||
if (!game.babele.isTranslated(metadata) && metadata.documentName === 'Actor') {
|
if (!game.babele.isTranslated(metadata) && metadata.collection != "wfrp4e-core.bestiary" && metadata.documentName === 'Actor') {
|
||||||
//console.log("PACK : ", metadata);
|
//console.log("REPLACE PACK : ", metadata);
|
||||||
let translations = {
|
let translations = {
|
||||||
"label": metadata.name,
|
"label": metadata.name,
|
||||||
"mapping": {
|
"mapping": {
|
||||||
"name": "name",
|
"name": "name",
|
||||||
"description": "system.biography.value",
|
"description": "system.details.biography.value",
|
||||||
"items": {
|
"items": {
|
||||||
"path": "items",
|
"path": "items",
|
||||||
"converter": "bestiary_traits"
|
"converter": "bestiary_traits"
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"label": "Bestiaire",
|
"label": "Bestiaire",
|
||||||
"mapping": {
|
"mapping": {
|
||||||
|
"description": "system.details.biography.value",
|
||||||
"items": {
|
"items": {
|
||||||
"path": "items",
|
"path": "items",
|
||||||
"converter": "bestiary_traits"
|
"converter": "bestiary_traits"
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"url": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr",
|
"url": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr",
|
||||||
"version": "6.2.14",
|
"version": "6.2.15",
|
||||||
"esmodules": [
|
"esmodules": [
|
||||||
"babele-register.js",
|
"babele-register.js",
|
||||||
"addon-register.js",
|
"addon-register.js",
|
||||||
@ -136,11 +136,11 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"manifest": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/raw/v10/module.json",
|
"manifest": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/raw/v10/module.json",
|
||||||
"download": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/archive/foundryvtt-wh4-lang-fr-6.2.14.zip",
|
"download": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/archive/foundryvtt-wh4-lang-fr-6.2.15.zip",
|
||||||
"id": "wh4-fr-translation",
|
"id": "wh4-fr-translation",
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
"minimum": "10",
|
"minimum": "10",
|
||||||
"verified": "10.285",
|
"verified": "10",
|
||||||
"maximum": "10"
|
"maximum": "10"
|
||||||
},
|
},
|
||||||
"relationships": {
|
"relationships": {
|
||||||
|
Loading…
Reference in New Issue
Block a user