| Parameter | Description |
|---|---|
| value | The resolved value. |
T
The transformed value, or value when the implementation leaves it alone.
Returns the transformed value, or the value unchanged.
Called once per resolved value for the locale that implements this interface. Return
value unchanged for types the implementation does not transform. An exception thrown here
propagates to whatever asked for the localized value, so handle unexpected input rather than throwing.
Additional resources: Locale
Run a locale's transform over a resolved value.
namespace Unity.Localization.Samples
{
public static class PostProcessValueExample
{
public static string Transform(IPostProcessValueLocale locale, string value)
{
return locale.PostProcessValue(value);
}
}
}