docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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}");
    }
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)