This is a template for the translation mods for the Stardew Access mod. The mod depends on Project Fluent for the translations and as such, you will need to install that too alongside Stardew Access.
The translation mod has two parts, the first one is the fluent content pack which contains all the translations for the mod so this is the most important part.
The second optional part is a C# mod that is supposed to contain the logic for advanced pluralization of item names for your language.
You can have basic pluralization setup with just fluent but that gets complicated for certain languages in which pluralization depends on certain conditions like the type of object (plural of wood is pieces of wood while plural of pen is pens).
Note that currently the C# part of the mod has not yet been included in this template repository.
- Allowed splitting of translation file into multiple sub-translation files (stardew access has a total of 6 translation files).
- Support for locale variants (differentiating between en-US and en-GB, but also providing a default en variant).
- Ability to use conditions in a translation entry allowing merging of multiple entries into one.
- Custom functions inside translation entries that extend functionality.
- Rename the folder
[Fluent][EN] Stardew Accessand replaceENwith the appropriate language code. - Change the
Name,Author,Description, andUniqueIDvalues to describe your mod. (Don’t change theUniqueIDunderContentPackForandDependencies!)- The
Namefield's value should ideally be the same as the folder's name you just changed to and as such, you'll only need to replaceENwith your language code. - Follow this format for the UniqueID:
<YourName>. Fluent.StardewAccess.<language-code>- An example of a United States English translation mod would be
Shoaib.Fluent.StardewAccess.en-us
- An example of a United States English translation mod would be
- The
- Create a folder named
i18ninside this folder. This will contain all the translation.ftlfiles. - Now copy the
.ftlfiles from thei18nfolder of the mod's beta or release version of the mod and rename them with your language code. - That's it! Now you can translate these files.
You can find syntax guide for fluent here. There's also a playground where you can test things if you want to. You might also need to look into the custom functions added by Project Fluent mod and Stardew Access
Because this is a content pack, it loads just like any other mod. So once you're done translating or want to test your translations, copy or move the [Fluent][EN] Stardew Access over to the Mods folder.
It is recommended that you also host this content pack on Nexus (if possible otherwise github or some other platform is fine) so that we can mention your translation mod on Stardew Access' mod pages.