Improve website tests (#842)

* Improve website tests

* Use DefaultLang instead of hard coding English
This commit is contained in:
Josh 2023-08-03 20:09:32 -05:00 committed by GitHub
parent 17022c36b8
commit 65f317d9bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 65 additions and 27 deletions

View file

@ -11,8 +11,6 @@ public static class LocalizationManager
public static string GetLocalizedString(TranslationAreas translationArea, string language, string key)
{
// return $"{translationArea.ToString()}.{language}.{key}";
// ASP.NET requires specific names for certain languages (like ja for japanese as opposed to the standard ja-JP)
// We map that value back here.
language = mapLanguageBack(language);