restrict problematic flags fixes #1690 (#1805)

Some flags are offensive, so don't allow them to be selected by users.

I think it's fine for nations continue to use the flags.

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced

regression is found:

evan
This commit is contained in:
evanpelle
2025-08-14 11:21:01 -07:00
committed by Scott Anderson
parent 3863f52bb8
commit 56f748b16f
3 changed files with 15 additions and 7 deletions
+1 -1
View File
@@ -200,7 +200,7 @@ export const GameInfoSchema = z.object({
});
export type GameInfo = z.infer<typeof GameInfoSchema>;
const countryCodes = countries.map((c) => c.code);
const countryCodes = countries.filter((c) => !c.restricted).map((c) => c.code);
export const FlagSchema = z
.string()
.max(128)