Localisation
Have your own localised text for the strings used within the plugin
There is a provision to configure the plugin to provide your own text based on the language selected by your user
🎉
There are two easy steps to have the plugin localised.

1. Implement ILocalisationServiceProvider Interface

You need to implement ILocalisationServiceProvider which has GetLocalisedString method. It takes two parameters key and default value.
key : Key contains the value used to identify the string (Refer here for keys used in the plugin)
default : This is usually the string in english language we use internally if no localisation exists.
1
namespace YourOwnNameSpace
2
{
3
public class MyLocalisationServiceProvider : ILocalisationServiceProvider
4
{
5
#region ILocalisationServiceProvider implementation
6
7
public string GetLocalisedString(string key, string defaultValue)
8
{
9
string localisedValue = defaultValue;//Replace defaultValue with your own mecanism to find localised text which has the "key"
10
return localisedValue;
11
}
12
13
#endregion
14
}
15
}
Copied!

2. Set the ILocalisationServiceProvider

You need to set the above implemented localisation provider to ExternalServiceProvider.LocalisationServiceProvider once your first scene is loaded
1
ExternalServiceProvider.LocalisationServiceProvider = new MyLocalisationServiceProvider();
Copied!

Key constants class for each feature

Feature Name
Class Name
Rate My App
RateMyAppLocalisationKey
Last modified 1mo ago