public string GetProjectVariable(string name, string locale = null) { if (string.IsNullOrWhiteSpace(locale) || !this.ProjectConfiguration.Locales.ContainsKey(locale)) locale = this.Locale; return this.ProjectConfiguration.GetVariable(name, locale); }
internal static string GetVariable(SageContext context, params string[] arguments) { if (arguments.Length < 1) return string.Empty; string name = arguments[0]; string locale = arguments.Length < 2 ? null : arguments[1]; return context.GetProjectVariable(name, locale); }