Skip to content

Commit

Permalink
Updated the unknown language comment to include Win11.
Browse files Browse the repository at this point in the history
I believe the previous OS's, primarily Win10 and Win7, still work with this method.
  • Loading branch information
josephmyers committed May 24, 2024
1 parent dab88cd commit 63c81be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/L10NSharp/L10NCultureInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public L10NCultureInfo(string name)
}

// Windows 10 changed the behavior of CultureInfo, in that unknown cultures no longer return a RawCultureInfo containing an "Unknown Language" indication.
// The proper way to detect fully unknown cultures (for Windows 10 and prior) is to:
// The proper way to detect fully unknown cultures (for Windows 11 and prior) is to:
// 1. Check for the custom culture flag
// 2. Check if the three-letter language name is set to default
// Source: https://stackoverflow.com/a/71388328/1964319
Expand Down

0 comments on commit 63c81be

Please sign in to comment.