[ fixed ] - 18n licalization in <item/block>_ghost.json not in en.json

hey i need some help ove been trying to make a simple couch in to the game but failing hard time.
i know its must be a easy thing that i am missing but all iam doing is trail and error with no succes

if someone can point me in the direnction to learn this stuff the good way please because i dont know waht the i118n does and how it does its thing

my file structure is currently:

| ---- hearthsfurniture
  | ---- entites
    | ---- furniture
      | ---- couch
         | ---- couch.json
         | ---- couch_ghost.json
         | ---- couch.qb
         | ---- couch_iconc.json
         | ---- couch_iconc.qb
         | ---- couch.png
  | ---- jobs
    | ---- carpenter
      | ---- recipes
      | ---- recipes.json
        | ---- custom
        | ---- couch_recipe.json
  | ---- locales
    | ---- en.json

couch_ghost,json:

{
   "mixins": "stonehearth:mixins:placed_object",
   "components": {
      "model_variants": {
         "default": {
            "models": [
               "file(couch.qb)"
            ]
         }
      },
      "mob": {
         "model_origin": { "x": 0.5, "y": 0, "z": 0.5 },
         "region_origin": { "x": 0.5, "y": 0, "z": 0.5 }
      }
   },
   "entity_data": {
      "stonehearth:catalog": {
         "display_name": "i18n(hearthsfurniture:entities.furniture.couch.couch_ghost.display_name)",
         "description": "i18n(hearthsfurniture:entities.furniture.couch.couch_ghost.description)",
         "icon": "file(couch.png)",
         "category": "furniture",
         "material_tags": [
            "wood",
            "furniture",
            "crafted",
            "chair",
            "stockpile_furniture"
         ]
      }
   }
}

in the shed program its yelling at the bottom that the

localization is not in en.json (in couch_ghost.json)
at line 18/19 in notepad++

and

errors where found in manifest.json

en.json

{
  "entities": {
    "couch": {
      "couch_ghost": {
        "display_name": "Comfy Couch",
        "description": "Indoor seating for moments of relaxation."
      }
    },
    "jobs": {
      "carpenter": {
        "recipes": {
          "couch_recipe": {
            "recipe_name": " Comfy couch",
            "description": "Indoor seating for moments of relaxation."
          }
        }
      }
    }
  }
}
{
   "info": {
      "name": "hearthsfurniture",
      "namespace": "hearthsfurniture",
      "version": 3
   },
   "default_locale": "en",
   "aliases": {
	   "furniture:couch": "file(entities/furniture/couch/couch.json)"

   },
   "mixintos": {
	   "stonehearth/jobs/carpenter/recipes/recipes.json": [
			"file(jobs/carpenter/recipes/recipes.json)"
	   ]
   },
   "overrides": {
	   
   },
   "components": {
	   
   },
   "controllers": {
	   
   }
}

Greetigs GamingOnInsulin aka Jordy Weerwag

Download file :
Hearths furniture mod (Github)

keep in mind if my english is bad its becuase iam a dutch person and not very good developed in english LOL

fixed 1 error at the time ! this error is fxed.
check reply for next error (1-7-2023) :beetle:

You’re doing great!

That’s called learning and we’ve all been there. Success comes after enough trial and error :jubilant:
Your en.json is missing a level between couch and entities.

If you look at your object’s json, the localization key is:
hearthsfurniture:entities.furniture.couch...

And in the en.json file you go with:

"entities": {
    "couch": {
      "couch_ghost": {
        "display_name": "Comfy Couch",
        "description": "Indoor seating for moments of relaxation."
      }
    },

You’re missing the furniture level, going straight from entities to couch.

Also, although unrelated, I see that you’re not correctly closing all the levels, and jobs is inside of entities when it should be at the same level. Your whole en.json file, corrected, should look like this:

{
  "entities": {
    "furniture": {
      "couch": {
        "couch_ghost": {
          "display_name": "Comfy Couch",
          "description": "Indoor seating for moments of relaxation."
        }
      }
    }
  },
  "jobs": {
    "carpenter": {
      "recipes": {
        "couch_recipe": {
          "recipe_name": " Comfy couch",
          "description": "Indoor seating for moments of relaxation."
        }
      }
    }
  }
}

I look forward to see your mod on the Workshop soon! :merry:

1 Like

oh my goodnes thank you you saved me so tiny small mistake xD i hoped i knew it sooner but he at got it at the end thanks alot :wink:

1 Like

deleted old post i did something horrobly wrong big time but SHED saved me i was just googling and found out you can clone stuff in SHED so i did and its working