-
Notifications
You must be signed in to change notification settings - Fork 1
Languages & Extensions
Wayward's language JSON files are used to provide new languages. They are also used to extend/tweak existing languages, such as changing the default translations for things in existing languages (sort of like a language patch) and translating new content that is added.
A language file must have exactly one of either name or extends.
-
name— This file defines a new language by this name. -
extends— This file extends an existing language by this name.
An object containing dictionaries. A dictionary is a key-value pair of the dictionary name, and the entries (or translations) in the dictionary.
As a simple example, let's say you want to change the name of the branch item. Your dictionaries would look like the following:
"dictionaries": {
"items": {
"branch": ["stick", "Useful for playing fetch."]
}
}A translation is always either a string "some text here" or an array of strings ["some text here", "more text", "etc"]. "text" is functionally equivalent to ["text"]. Each string in an array of strings is a different part of the translation, for example:
- Entries in the
item,creature, anddoodaddictionaries are[Name, Description]. - Entries in the
bookdictionary are[Author, Text]. - Entries in the
helpArticledictionary are[Name, Summary, Subtitle, Text]. - Entries in the
humanNamedictionary are actually any number of different names that can be used.
Getting Started
- Introduction
- Prerequisites
+mod create&+mod update- mod.json
- Extracting Assets
- Resources & Examples
- Frequently Asked Questions
Mod Content
Script Documentation
- Using Translations
- Registrations
- Event Handlers
- Injection
- Adding Items
- Adding Doodads
- Adding Creatures
- Adding Magical Properties
- Actions & Multiplayer
- Adding Dialogs
- Context Menu/Action Bar Actions
- Inter-mod Registries
(apologies for all the missing guides, we'll get to them at some point)