Event TranslationNotFound
Event is sent when a Table does not have a translation for a specified Locale.
Namespace: UnityEngine.Localization.Settings
Assembly: Unity.Localization.dll
Syntax
public event LocalizedStringDatabase.MissingTranslation TranslationNotFound
Returns
Type | Description |
---|---|
LocalizedStringDatabase.MissingTranslation |
Examples
This example shows how to listen for missing translation event notifications.
public void SubscribeToTranslationNotFound()
{
LocalizationSettings.StringDatabase.TranslationNotFound += StringDatabase_TranslationNotFound;
}
void StringDatabase_TranslationNotFound(string key, long keyId, TableReference tableReference, StringTable table, UnityEngine.Localization.Locale locale, string noTranslationFoundMessage)
{
Debug.Log($"Translation Not Found for {key} in {table?.TableCollectionName} for {locale}");
}