Supported Games

A simple translation API plugin. This is useful for players whose native language is not English.
Please read the documentation carefully. You'll also need to download the translation files instead of just loading the plugin
For plugins that support this plugin. You no longer need to translate items, holdables, deployables
You will need to manually download and extract the translation files to oxide/data/Translations.
Click here to download all translation files of Rust. Extract the entire zip file to oxide/data/Translations . If the Translations folder does not exist, please create it. You will need to re-download the translation files each time Rust updates
I made an extension to automatically download translation files, but uMod is forbidden to download extensions from here, if you need this extension, please search Oxide.Ext.TranslationsDownloader in github.
Languages supported by Rust:
"af", "ar", "ca", "cs", "da", "de", "el", "en-PT", "es-ES", "fi", "fr", "he", "hu", "it", "ja", "ko", "nl", "no", "pl", "pt-BR", "pt-PT", "ro", "ru", "sr", "sv-SE", "tr", "uk", "vi", "zh-CN", "zh-TW", "en"
Configuration
{
"Translations override": {
"zh-CN": {//language code (ISO 639-1)
"fogmachine": "喷雾机"//fogmachine is the translation token. You can find them in the 'engine.json' for each language folder in the oxide/data/Translations
},
}
}
API
string GetItemTranslationByID(string language, int itemID)
string GetItemTranslationByDisplayName(string language, string displayName)
string GetItemTranslationByDefinition(string language, ItemDefinition itemDefinition)
string GetItemTranslationByShortName(string language, string itemShortName)
//The following APIs support short prefab names and prefab names
string GetDeployableTranslation(string language, string deployable)
string GetHoldableTranslation(string language, string holdable)
string GetMonumentTranslation(string language, string monumentName)
string GetConstructionTranslation(string language, string constructionName)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.