Excel形式の翻訳データをUnityに使いやすいjson形式に変換するツールです
"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
| key | Japanese | English |
|---|---|---|
| Article_ブロンズソード | ブロンズソード | Bronze Sword |
{
"items": [
{
"key": "Article_ブロンズソード",
"pairs": [
{
"language": "Japanese",
"text": "ブロンズソード"
},
{
"language": "English",
"text": "Bronze Sword"
}
]
}
]
}[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