https://github.com/GlitchEnzo/NuGetForUnity.git?path=/src/NuGetForUnity
- For older versions see NuGetForUnity Repo
https://github.com/Maksibi/GoogleSheetsLocalization.git
Assets
>Create
>LocalizationHolder
Api Key
- your google sheets api key, you can find it hereSheets ID
- id of sheets in GoogleSheets, can be fount in URL of GoogleSheets
Sheet Name
- name of sheet in GoogleSheets, can be found at bottom of GoogleSheets
- Your table should look like this:
- Fill your Keys and LocalizationValues according to layout of the table
- Open context menu of LocalizationHolder and press DownloadLocalization
- One way of using this package is a built in LocalizationSingleton and LocalizedText. Place LocalizationSingleton in first scene of project, call Init with lang code and place LocalizedText on every text you want to localize
LocalizationSingleton.Instance.CurrentLocalization["YourLocalizationKey"];
- Another way of using is accessing LocalizationHolder's Dictionary with all localizations, this way you can swap languages or localization tables with ease.