Localization Mod for Stardew Valley Android
Go to file
yangzhi e86693a494 first commit 2020-02-10 16:08:56 +08:00
Rewrites first commit 2020-02-10 16:08:56 +08:00
.gitignore first commit 2020-02-10 16:08:56 +08:00
LICENSE.txt first commit 2020-02-10 16:08:56 +08:00
ModConfig.cs first commit 2020-02-10 16:08:56 +08:00
ModEntry.cs first commit 2020-02-10 16:08:56 +08:00
README.md first commit 2020-02-10 16:08:56 +08:00
SMAPI.Mods.CustomLocalization.csproj first commit 2020-02-10 16:08:56 +08:00
SMAPI.Mods.CustomLocalization.sln first commit 2020-02-10 16:08:56 +08:00
manifest.json first commit 2020-02-10 16:08:56 +08:00

README.md

Custom Localization

Custom Localization is a Localization Mod for Stardew Valley Android only.

Description

  • For user

Extract mod into Mods folder, put localization xnb resources into Content folder. The mod will load Content folder and add or replace xnb files into game's own content dynamically without needs of modify game's apk.

  • For developer

Typically mod's config file looks like this:

{
  "OriginLocaleCount": 11,
  "CurrentLanguageCode": 3,
  "locales": [
    {
      "Name": "Chinese",
      "DisplayName": "简体中文",
      "CodeEnum": 3,
      "LocaleCode": "zh-CN",
      "IsLatin": false,
      "FontFileName": "Fonts\\Chinese",
      "FontPixelZoom": 1.5
    }
  ]
}
Config Name Description
OriginLocaleCount Game default support language count, do not modify
CurrentLanguageCode User current selected language code enum value
CurrentLanguageCode User current selected language code enum value
locales Mod manually added locales list
Name Locale name, make sure it's unique
DisplayName Locale display name
CodeEnum Locale enum value, game has taken 0 to 11
LocaleCode Locale country code, also it is xnb file's suffix name
IsLatin If the locale is latin based locale, which didn't have to provide font
FontFileName Font's asset name
FontPixelZoom Font's zoom scale