Thanks to visit codestin.com
Credit goes to github.com

Skip to content

enue/game22_localization_tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Excel形式の翻訳データをUnityに使いやすいjson形式に変換するツールです

usage

"tool/ExcelToJson.exe" -h
"tool/ExcelToJson.exe" convert ./source.xlsx ./output.json
"tool/ExcelToJson.exe" add ./output.json ./addition.xlsx
"tool/ExcelToJson.exe" distinct ./output.json --verbose

source xlsx sample

key Japanese English
Article_ブロンズソード ブロンズソード Bronze Sword

output json sample

{
  "items": [
    {
      "key": "Article_ブロンズソード",
      "pairs": [
        {
          "language": "Japanese",
          "text": "ブロンズソード"
        },
        {
          "language": "English",
          "text": "Bronze Sword"
        }
      ]
    }
  ]
}

unity class sample

[System.Serializable]
public class Sheet
{
    [System.Serializable]
    public class Item
    {
        [System.Serializable]
        public class Pair
        {
            public string language;
            public string text;
        }

        public string key;
        public List<Pair> pairs = new List<Pair>();
    }

    public List<Item> items = new List<Item>();
}

https://github.com/enue/Unity_TSKT_Localization/blob/master/Assets/Package/Runtime/Sheet.cs

About

翻訳補助ツール

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages