protected override string GetLocalizedText()

in Scripts/Editor/Windows/PropertyDrawers/WitApplicationPropertyDrawer.cs [20:43]


        protected override string GetLocalizedText(SerializedProperty property, string key)
        {
            // Determine by ids
            switch (key)
            {
                case LocalizedTitleKey:
                    return WitTexts.Texts.ConfigurationApplicationTabLabel;
                case LocalizedMissingKey:
                    return WitTexts.Texts.ConfigurationApplicationMissingLabel;
                case "name":
                    return WitTexts.Texts.ConfigurationApplicationNameLabel;
                case "id":
                    return WitTexts.Texts.ConfigurationApplicationIdLabel;
                case "lang":
                    return WitTexts.Texts.ConfigurationApplicationLanguageLabel;
                case "isPrivate":
                    return WitTexts.Texts.ConfigurationApplicationPrivateLabel;
                case "createdAt":
                    return WitTexts.Texts.ConfigurationApplicationCreatedLabel;
            }

            // Default to base
            return base.GetLocalizedText(property, key);
        }