The '''LocaleStringDriver''' component is used to turn a key into a translated string from a locale, and then fill its value arguments with field contents or values.
|Locale|{{RootFieldType|AssetRef`1|[[Type:LocaleResource|LocaleResource]]}}|TypeAdv3=true| The locale resource to use <code>Key</code> on to get the translated string for.
|ArgumentSources|{{RootFieldType|SyncDictionary`2|[[Type:String|String]], [[Type:RelayRef`1|RelayRef`1]]<[[Type:IField|IField]]>}}|TypeAdv4=true| A list of argument strings in a locale translation and their fields to get the values for them from.
|ArgumentValues|{{RootFieldType|SyncDictionary`2|[[Type:String|String]], [[Type:SyncVar|SyncVar]]}}|TypeAdv5=true| A list of argument strings in a locale translation and their values.
}}
}}
== Behavior ==
== Sync Delegates ==
{{Table ComponentTriggers
== Examples ==
|SetArgumentSource:[[Type:Action`2|Action`2]]<[[Type:String|String]], [[Type:IField|IField]]>|[[Type:Action`2|Action`2]]<[[Type:String|String]], [[Type:IField|IField]]>|false| Can be called to set the argument source for the locale data.
|SetArgumentValue:[[Type:Func`3|Func`3]]<[[Type:String|String]], [[Type:Object|Object]], [[Type:Bool|Bool]]>|[[Type:Func`3|Func`3]]<[[Type:String|String]], [[Type:Object|Object]], [[Type:Bool|Bool]]>|false| Can be called to set the argument value for the locale data.
Locale String Driver component as seen in the Scene Inspector
The LocaleStringDriver component is used to turn a key into a translated string from a locale, and then fill its value arguments with field contents or values.