Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Update rs

KrzysztofPajakf5a4bb2df76e
diff --git a/src/Web/Grand.Web/Views/Shared/VoiceNavigator/VoiceNavigator.cshtml b/src/Web/Grand.Web/Views/Shared/VoiceNavigator/VoiceNavigator.cshtml
index 70e5d6f48..51e56cea6 100644
--- a/src/Web/Grand.Web/Views/Shared/VoiceNavigator/VoiceNavigator.cshtml
+++ b/src/Web/Grand.Web/Views/Shared/VoiceNavigator/VoiceNavigator.cshtml
@@ -41,57 +41,43 @@
data: () => ({
recording: false,
recognition: null,
- lang: '@lang',
+ lang: 'pl-PL',
commands: [
{
"name": "cart",
"url": "/cart",
- "triggers": [
- @Html.Raw(Loc["voicenavigator.commands.cart"])
- ]
+ "triggers": @Html.Raw(Json.Serialize(Loc["voicenavigator.commands.cart"].Value.Split(',')))
},
{
"name": "blog",
"url": "/blog",
- "triggers": [
- @Html.Raw(Loc["voicenavigator.commands.blog"])
- ]
+ "triggers": @Html.Raw(Json.Serialize(Loc["voicenavigator.commands.blog"].Value.Split(',')))
},
{
"name": "homepage",
"url": "/",
- "triggers": [
- @Html.Raw(Loc["voicenavigator.commands.homepage"])
- ]
+ "triggers": @Html.Raw(Json.Serialize(Loc["voicenavigator.commands.homepage"].Value.Split(',')))
},
{
"name": "wishlist",
"url": "/wishlist",
- "triggers": [
- @Html.Raw(Loc["voicenavigator.commands.wishlist"])
- ]
+ "triggers": @Html.Raw(Json.Serialize(Loc["voicenavigator.commands.wishlist"].Value.Split(',')))
},
{
"name": "login",
"url": "/login",
- "triggers": [
- @Html.Raw(Loc["voicenavigator.commands.login"])
- ]
+ "triggers": @Html.Raw(Json.Serialize(Loc["voicenavigator.commands.login"].Value.Split(',')))
},
{
"name": "register",
"url": "/register",
- "triggers": [
- @Html.Raw(Loc["voicenavigator.commands.register"])
- ]
+ "triggers": @Html.Raw(Json.Serialize(Loc["voicenavigator.commands.register"].Value.Split(',')))
},
{
"name": "contactus",
"url": "/contactus",
- "triggers": [
- @Html.Raw(Loc["voicenavigator.commands.contactus"])
- ]
- },
+ "triggers": @Html.Raw(Json.Serialize(Loc["voicenavigator.commands.contactus"].Value.Split(',')))
+ }
],
transcript: "",
variant: "info",
@@ -111,7 +97,7 @@
if (speech) {
if (this.recording) {
this.recognition = new speech();
- this.recognition.continuous = true;
+ this.recognition.continuous = false;
this.recognition.lang = voicenavigator.lang;
this.recognition.interimResults = false;
this.recognition.maxAlternatives = 1;