23 lines
658 B
C#
23 lines
658 B
C#
#if UNITY_EDITOR
|
|
using UnityEditor;
|
|
|
|
namespace DDD
|
|
{
|
|
public static class LocalizationSyncTool
|
|
{
|
|
public static readonly string WebAppUrl = "https://script.google.com/macros/s/AKfycbwVQ7_x0Didf_13h3qPB9lSMobBR9xr6nLffj_n8znNvfs-pdNylNA7nWzd2R-_IHGf/exec";
|
|
|
|
[MenuItem("Tools/Localization/Google Sheet → Unity")]
|
|
public static void ImportAll()
|
|
{
|
|
LocalizationImporter.ImportAllFromSheet(WebAppUrl);
|
|
}
|
|
|
|
[MenuItem("Tools/Localization/Unity → Google Sheet")]
|
|
public static void ExportAll()
|
|
{
|
|
LocalizationExporter.ExportAllToSheet(WebAppUrl);
|
|
}
|
|
}
|
|
}
|
|
#endif |