diff --git a/Documentation/Blazorise.Docs/Models/Snippets.generated.cs b/Documentation/Blazorise.Docs/Models/Snippets.generated.cs index 44cd2a4bb8..dfbec9d546 100644 --- a/Documentation/Blazorise.Docs/Models/Snippets.generated.cs +++ b/Documentation/Blazorise.Docs/Models/Snippets.generated.cs @@ -4998,17 +4998,19 @@ Task SelectCulture( string name ) } }"; - public const string ITextLocalizerServiceExample = @" + public const string ITextLocalizerServiceExample = @"@using System.Globalization + + - item)"" - ValueField=""@((item)=>item)"" + Data=""@LocalizationService.AvailableCultures"" + TextField=""@((item)=>item.IsNeutralCulture ? item.EnglishName : item.Parent.EnglishName)"" + ValueField=""@((item)=>item.Name)"" @bind-SelectedValue=""selectedCulture"" DefaultItemText=""Choose your culture"" /> diff --git a/Documentation/Blazorise.Docs/Pages/Docs/Helpers/Localization/Code/ITextLocalizerServiceExampleCode.html b/Documentation/Blazorise.Docs/Pages/Docs/Helpers/Localization/Code/ITextLocalizerServiceExampleCode.html index d3a43577ae..ac11a3c4ff 100644 --- a/Documentation/Blazorise.Docs/Pages/Docs/Helpers/Localization/Code/ITextLocalizerServiceExampleCode.html +++ b/Documentation/Blazorise.Docs/Pages/Docs/Helpers/Localization/Code/ITextLocalizerServiceExampleCode.html @@ -1,16 +1,18 @@
+@using System.Globalization
+
 <Field>
     <FileEdit />
 </Field>
 <Field>
     <Addons>
         <Addon AddonType="AddonType.Start">
-            <SelectList TItem="string"
+            <SelectList TItem="CultureInfo"
                         TValue="string"
-                        Data="@Blazorise.Docs.Models.LocalizationCulture.AvailableCultures"
-                        TextField="@((item)=>item)"
-                        ValueField="@((item)=>item)"
+                        Data="@LocalizationService.AvailableCultures"
+                        TextField="@((item)=>item.IsNeutralCulture ? item.EnglishName : item.Parent.EnglishName)"
+                        ValueField="@((item)=>item.Name)"
                         @bind-SelectedValue="selectedCulture"
                         DefaultItemText="Choose your culture" />
         </Addon>
diff --git a/Documentation/Blazorise.Docs/Pages/Docs/Helpers/Localization/Examples/ITextLocalizerServiceExample.razor b/Documentation/Blazorise.Docs/Pages/Docs/Helpers/Localization/Examples/ITextLocalizerServiceExample.razor
index 375189dc11..9312d93c89 100644
--- a/Documentation/Blazorise.Docs/Pages/Docs/Helpers/Localization/Examples/ITextLocalizerServiceExample.razor
+++ b/Documentation/Blazorise.Docs/Pages/Docs/Helpers/Localization/Examples/ITextLocalizerServiceExample.razor
@@ -1,4 +1,5 @@
 @namespace Blazorise.Docs.Docs.Examples
+@using System.Globalization
 
 
     
@@ -6,11 +7,11 @@
 
     
         
-            
         
diff --git a/Documentation/Blazorise.Docs/Pages/Docs/Helpers/Localization/LocalizationPage.razor b/Documentation/Blazorise.Docs/Pages/Docs/Helpers/Localization/LocalizationPage.razor
index 9db8548c36..4926a790ae 100644
--- a/Documentation/Blazorise.Docs/Pages/Docs/Helpers/Localization/LocalizationPage.razor
+++ b/Documentation/Blazorise.Docs/Pages/Docs/Helpers/Localization/LocalizationPage.razor
@@ -18,13 +18,19 @@
         List of predefined language that comes with Blazorise is:
 
         
-            de-DE German
-            en-US English
-            es-ES Spanish
-            fr-FR French
-            hr-HR Croatian
-            nl-NL Dutch
-            pt-PT Portuguese
+            de German
+            en English
+            es Spanish
+            fr French
+            hr Croatian
+            is Icelandic
+            it Italian
+            nl Dutch
+            pl Polish
+            pt Portuguese
+            ru Russian
+            sk Slovakian
+            tr Turkish
         
 
         
@@ -63,5 +69,4 @@
     
     
     
-
-
+
\ No newline at end of file