private LanguageRouting GetLanguageRouting(IContent content)
        {
            var locale = content as ILocale;

            if (locale == null)
            {
                return(null);
            }

            return(_languageRoutingFactory.CreateLanguageRouting(locale));
        }
Exemplo n.º 2
0
        private string GetLanguageRoutingParameter(IContent content)
        {
            var locale = content as ILocale;

            if (locale == null)
            {
                return(string.Empty);
            }
            var languageRouting = _languageRoutingFactory.CreateLanguageRouting(locale);

            return($"?language_routing={languageRouting.FieldSuffix}");
        }