the-hideout/tarkov-api

lang: zh make no effect.

tiltysola opened this issue · 9 comments

I tried this code:

query {
  items(lang: zh) {
    id,
    name,
    shortName,
    basePrice,
    avg24hPrice
  }
}

But it returns all data with English name, not Chinese name.

That is interesting, we certainly have it listed as a support language here and that file's contents are sourced directly from the API's list of supported languages... 🤔

Are items translated to Chinese in-game that are not translated via the API? Theoretically, item names in the API should match what you see in the game for a given language. It appears to me that even though the game has a Chinese localization file, much of it is not actually translated to Chinese.

I was looking at this for it lang. There is definitely a discrepancy in what is translated and what is not in game, but it appears that we don't have anything translated in the API. In game, all bolt action snipers are translated, but only like 70% of shotguns and 20% of carabins.

bolt

shotguns

carabin

The only languages we currently have localization files for are:

cz
de
en
es
fr
hu
ru
tr
zh

These are the languages available via the LanguageCode enum on the API.

The only languages we currently have localization files for are:

de

These are the languages available via the LanguageCode enum on the API.

We don't have de items in the API either... With game in de roughly 90% of AKs are translated, a cuple of pistols, two shotguns, half of the grenades etc.

Seems like there's an issue with the locale files we're getting.

Cann we add to the API the LanguageCode from the website too (lite it and jp)?

Maybe. Sourcing up-to-date translation files has proven somewhat tricky.

This should be fixed now. Our translations might lag behind the game a bit, but they should be more comprehensive now.