docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ModulePseudoLocale

    A pseudo-localization locale for the built-in localization module.

    Inheritance
    object
    Locale
    ModulePseudoLocale
    Implements
    IPostProcessValueLocale
    Inherited Members
    Locale.Identifier
    Locale.Code
    Locale.LocaleName
    Locale.Enabled
    Locale.FallbackCode
    Locale.CultureInfo
    Namespace: UnityEngine.Localization.Pseudo
    Assembly: Unity.Localization.dll
    Syntax
    [Serializable]
    public class ModulePseudoLocale : Locale, IPostProcessValueLocale
    Remarks

    Add it to the module's locale list to test layout and localization readiness without real translations: every resolved string runs through the configured Methods, the same pseudo-localization methods the package's PseudoLocale uses. The transformation applies after Smart String formatting, through the module's Unity.Localization.IPostProcessValueLocale hook.

    Examples
    var pseudo = new ModulePseudoLocale("en-pseudo") { FallbackCode = "en" };
    moduleSettings.AddLocale(pseudo);

    Constructors

    Name Description
    ModulePseudoLocale()

    Creates a pseudo locale with the default method set.

    ModulePseudoLocale(string, string)

    Creates a pseudo locale for a specific culture code.

    Properties

    Name Description
    Methods

    The pseudo-localization methods, applied in list order.

    Methods

    Name Description
    PostProcessValue<T>(T)

    See Also

    PseudoLocale
    IPseudoLocalizationMethod
    In This Article
    Back to top
    Copyright © 2026 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)