Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
- upgrade protos
- extra fallback replacements for lures/troy disks if item translations are missing
  • Loading branch information
TurtIeSocks committed Feb 28, 2023
1 parent 01b07bf commit 680f8e6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
10 changes: 7 additions & 3 deletions src/classes/Translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(' ')
Expand All @@ -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())
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit 680f8e6

Please sign in to comment.