From 680f8e6f2c17cf192292ac114296d65f7dea0179 Mon Sep 17 00:00:00 2001 From: Derick M <58572875+TurtIeSocks@users.noreply.github.com> Date: Tue, 28 Feb 2023 14:01:11 -0500 Subject: [PATCH] version bump - upgrade protos - extra fallback replacements for lures/troy disks if item translations are missing --- package.json | 2 +- src/classes/Translations.ts | 10 +++++++--- yarn.lock | 8 ++++---- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index fc460ad..9b6f9a2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pogo-data-generator", - "version": "1.10.6", + "version": "1.10.7", "description": "Pokemon GO project data generator", "author": "TurtIeSocks", "license": "Apache-2.0", diff --git a/src/classes/Translations.ts b/src/classes/Translations.ts index 507f052..3f2bfc9 100644 --- a/src/classes/Translations.ts +++ b/src/classes/Translations.ts @@ -649,10 +649,10 @@ export default class Translations extends Masterfile { let item = this.rawTranslations[locale][`${name.toLowerCase()}_name`] || - this.capitalize(name) + this.capitalize(name.replace('ITEM_', '').replace('TROY_DISK_', '')) this.parsedTranslations[locale].items[ `${this.options.prefix.items}${id}` - ] = item || this.capitalize(name.replace('ITEM_', '')) + ] = item if (name.startsWith('ITEM_TROY_DISK')) { const base = this.rawTranslations[locale].item_troy_disk_name.split(' ') @@ -664,7 +664,11 @@ export default class Translations extends Masterfile { base.forEach((word) => { item = item.replace(word, '') }) - item = item.replace('Mód. ', '') + item = item + .replace('Item', '') + .replace('Troy', '') + .replace('Disk', '') + .replace('Mód. ', '') this.parsedTranslations[locale].lures[ `${this.options.prefix.lures}${id}` ] = this.capitalize(item.replace('-', '').trim()) diff --git a/yarn.lock b/yarn.lock index 30fc5f9..79f404c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -861,9 +861,9 @@ integrity sha512-6qKpDtoaYLM+5+AFChLhHermMQxc3TOEFIDzrZLPRGHPrLEwqFkkT5Kx3ju05g6X7uDPazz3jHbKPX0KzCjntg== "@types/node@>=13.7.0": - version "18.13.0" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.13.0.tgz#0400d1e6ce87e9d3032c19eb6c58205b0d3f7850" - integrity sha512-gC3TazRzGoOnoKAhUx+Q0t8S9Tzs74z7m0ipwGpSqQrleP14hKxP4/JUeEQcD3W1/aIpnWl8pHowI7WokuZpXg== + version "18.14.2" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.14.2.tgz#c076ed1d7b6095078ad3cf21dfeea951842778b1" + integrity sha512-1uEQxww3DaghA0RxqHx0O0ppVlo43pJhepY51OxuQIKHpjbnYLA7vcdwioNPzIqmC2u3I/dmylcqjlh0e7AyUA== "@types/prettier@^2.1.5": version "2.6.4" @@ -2150,7 +2150,7 @@ pkg-dir@^4.2.0: "pogo-protos@github:Furtif/pogo-protos": version "2.57.8" - resolved "https://codeload.github.com/Furtif/pogo-protos/tar.gz/0b898f25d30e8db70c5126abcde5188840d3d443" + resolved "https://codeload.github.com/Furtif/pogo-protos/tar.gz/c9158cf81e2bc962437abcc76b27b2c479271005" dependencies: protobufjs "^6.11.3"