You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 23, 2023. It is now read-only.
The issue is that the default localization.json file is being treated as a locale file, and the string.split()[^2] resolves to localization, which it then tries to create a CultureInfo from, which is invalid.
Hi there,
I'm using a set of JSON files with localised strings, for example:
Where
localization.jsonis the fallback locale (en-US) andlocalization.nl.jsonis Dutch.When the request locale is
nlaCultureNotFoundExceptionis thrown with the messagefrom here:
Askmethat-Aspnet-JsonLocalizer/Askmethat.Aspnet.JsonLocalizer.Shared/Localizer/Modes/LocalizationI18NModeGenerator.cs
Line 49 in 788d32b
The issue is that the default
localization.jsonfile is being treated as a locale file, and thestring.split()[^2]resolves tolocalization, which it then tries to create aCultureInfofrom, which is invalid.