This commit is contained in:
2021-05-14 10:27:53 +02:00
parent e54b894256
commit c6abd320e5
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ namespace zero.Core.Renderer
}
public static string Apply(string text, IDictionary<string, string> tokens)
public static string Apply(string text, Dictionary<string, string> tokens)
{
if (text.IsNullOrWhiteSpace())
{
+4 -4
View File
@@ -32,7 +32,7 @@ namespace zero.Core.Services
/// <inheritdoc />
public string Text(string key, IDictionary<string, string> tokens)
public string Text(string key, Dictionary<string, string> tokens)
{
if (key.IsNullOrEmpty())
{
@@ -79,7 +79,7 @@ namespace zero.Core.Services
/// <inheritdoc />
public string Maybe(string key, IDictionary<string, string> tokens)
public string Maybe(string key, Dictionary<string, string> tokens)
{
return key.IsNullOrEmpty() || !key.StartsWith("@") ? key : Text(key.Substring(1), tokens);
}
@@ -111,7 +111,7 @@ namespace zero.Core.Services
/// <summary>
///
/// </summary>
string Text(string key, IDictionary<string, string> tokens);
string Text(string key, Dictionary<string, string> tokens);
/// <summary>
/// Get a text string from a [Localize] attribute
@@ -126,6 +126,6 @@ namespace zero.Core.Services
/// <summary>
/// Only tries to resolve the key when it is prefixed with an @
/// </summary>
string Maybe(string key, IDictionary<string, string> tokens);
string Maybe(string key, Dictionary<string, string> tokens);
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
<template>
<div class="app-nav theme-light" :class="{'is-compact': compact }">
<div class="app-nav" :class="{'is-compact': compact }">
<h1 class="app-nav-headline">
<img src="/Assets/zero-2-light.png" class="show-light" v-localize:alt="'@zero.name'" />
+1 -1
View File
@@ -16,7 +16,7 @@ namespace zero.Web.Extensions
}
public static IHtmlContent Html(this ILocalizer localizer, string key, IDictionary<string, string> tokens)
public static IHtmlContent Html(this ILocalizer localizer, string key, Dictionary<string, string> tokens)
{
string value = localizer.Text(key, tokens);
+1 -1
View File
@@ -22,7 +22,7 @@
</environment>
<title>zero</title>
</head>
<body class="theme-light theme-roundedx">
<body class="theme-dark theme-rounded">
<div id="app"></div>
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
@Html.Raw(Model.Vue.GetIconSvg())