This commit is contained in:
Andrea Toska 2025-02-10 11:04:54 +01:00
commit fcb06dccdf
3658 changed files with 2919 additions and 13405 deletions

View file

@ -1,5 +1,5 @@
# Error Codes
[![NPM Version](https://img.shields.io/npm/v/%40pretendonetwork%2Ferror-codes)](https://www.npmjs.com/package/@pretendonetwork/error-codes)
[![NPM Version](https://img.shields.io/npm/v/%40atoska21k%2Ferror-codes)](https://www.npmjs.com/package/@atoska21/error-codes)
Translated JSON files for known error codes used by the Wii U and 3DS
@ -25,7 +25,7 @@ data
```
## Translation Files
Each translation file is a JSON object named using standard locale names. The contents of each file contains strings intended for both use in our Discord bot [Bandwidth](https://github.com/PretendoNetwork/Bandwidth) and our websites support pages. Due to this each file may have many strings, some of which may seem redundant.
Each translation file is a JSON object named using standard locale names. The contents of each file contains strings intended for both use in our Discord bot [Bandwidth](https://github.com/Splatfestival/testing-utils) and our websites support pages. Due to this each file may have many strings, some of which may seem redundant.
Each file starts with 1 or 2 objects, each with 1 key each. The first object key is the module ID. If the translation file is for a module, there is only this top level object. If the translation file is for an error the second object's key is the error code. This may seem redundant, and it is. This is done so that translation tools such as the in-development [Locali by NeatoJS](https://discord.gg/cGd5pKxWyK) can index each string as `module.string_name` and `module.error.string_name`. Example object structures:
@ -49,7 +49,7 @@ Each file starts with 1 or 2 objects, each with 1 key each. The first object key
"long_description": "The account you are trying to use has been permanently banned from all aspects of the network. This includes, but is not limited to:\n\n- Miiverse\n- Game servers\n- 3rd party services which opt-in to respecting network bans",
"short_solution": "Not applicable.",
"long_solution": "Not applicable.",
"support_link": "https://preten.do/102-2802"
"support_link": "https://perditum.com/docs/error/102-2802"
}
}
}