protected override string GetLocalizedText()

in Scripts/Editor/Data/Configuration/WitEndpointConfigDrawer.cs [51:71]


        protected override string GetLocalizedText(SerializedProperty property, string key)
        {
            // Iterate options
            switch (key)
            {
                case LocalizedTitleKey:
                    return WitTexts.Texts.ConfigurationEndpointTitleLabel;
                case "uriScheme":
                    return WitTexts.Texts.ConfigurationEndpointUriLabel;
                case "authority":
                    return WitTexts.Texts.ConfigurationEndpointAuthLabel;
                case "port":
                    return WitTexts.Texts.ConfigurationEndpointPortLabel;
                case "witApiVersion":
                    return WitTexts.Texts.ConfigurationEndpointApiLabel;
                case "speech":
                    return WitTexts.Texts.ConfigurationEndpointSpeechLabel;
            }
            // Default to base
            return base.GetLocalizedText(property, key);
        }