diff --git a/category-localizer.js b/category-localizer.js index c36b8a7..041a570 100644 --- a/category-localizer.js +++ b/category-localizer.js @@ -63,7 +63,7 @@ async function fetchAndProcessData() { const curseForgeData = await fetchData('https://api.curseforge.com/v1/categories?gameId=432', {'x-api-key': 'cf-api-key'}); const translationIndexes = []; curseForgeData.data.forEach(item => { - if (![12, 6552].includes(item.classId)) return; + if (![12, 17, 6552].includes(item.classId)) return; let category = `"resourcify.categories.${item.name.toLowerCase().replaceAll(" ", "_")}": "${capitalizeWords(item.name)}",` if (!translationIndexes.includes(category) && !modrinthIndexes.includes(category)) { translationIndexes.push(category); diff --git a/src/main/resources/assets/resourcify/lang/en_us.json b/src/main/resources/assets/resourcify/lang/en_us.json index 5390780..701a8a9 100644 --- a/src/main/resources/assets/resourcify/lang/en_us.json +++ b/src/main/resources/assets/resourcify/lang/en_us.json @@ -4,6 +4,7 @@ "resourcify.type.resource_packs": "resource packs", "resourcify.type.data_packs": "data packs", "resourcify.type.shaders": "shaders", + "resourcify.type.world": "worlds", "resourcify.browse.search": "Search %s...", "resourcify.browse.sort.relevance": "Relevance", @@ -137,5 +138,11 @@ "resourcify.categories.photo_realistic": "Photo Realistic", "resourcify.categories.font_packs": "Font Packs", "resourcify.categories.vanilla": "Vanilla", - "resourcify.categories.medieval": "Medieval" + "resourcify.categories.medieval": "Medieval", + "resourcify.categories.game_map": "Game Map", + "resourcify.categories.survival": "Survival", + "resourcify.categories.parkour": "Parkour", + "resourcify.categories.creation": "Creation", + "resourcify.categories.puzzle": "Puzzle", + "resourcify.categories.modded_world": "Modded World" } \ No newline at end of file