Class GoogleSheetsTranslationConnector
Parses a CSV file and provides the entries to LocalizationService. Each line should contains 3 values: phrase, language, translation. '|' is the delimiter character.
Namespace: NoSuchStudio.Localization.Source
Assembly: NoSuchStudio-Localization.dll
Syntax
[RequireComponent(typeof(StandaloneTranslationSource))]
public class GoogleSheetsTranslationConnector : NoSuchMonoBehaviour
Fields
dataLoadEvent
Declaration
public GoogleSheetsTranslationConnector.GoogleSheetsLoadEvent dataLoadEvent
Field Value
| Type | Description |
|---|---|
| GoogleSheetsTranslationConnector.GoogleSheetsLoadEvent |
Properties
loadState
The result of last load request. You can reload the sheet data by calling LoadSheet().
Declaration
public GoogleSheetsTranslationConnector.LoadState loadState { get; }
Property Value
| Type | Description |
|---|---|
| GoogleSheetsTranslationConnector.LoadState |
sheetURL
Declaration
public string sheetURL { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
Methods
CancelLoad()
Cancel the current load operation.
Declaration
public bool CancelLoad()
Returns
| Type | Description |
|---|---|
| Boolean | true if there was a pending operation, false if nothing happened. |
LoadSheet()
Starts loading the sheet data from the internet. sheetURL. dataLoadEvent
Declaration
public void LoadSheet()