diff options
author | Jamie Guthrie <jamie.guthrie@gmail.com> | 2023-08-20 00:12:23 +0200 |
---|---|---|
committer | Jamie Guthrie <jamie.guthrie@gmail.com> | 2023-08-20 00:12:23 +0200 |
commit | 651e03d16e0609ff57aafd41334feed3441288ba (patch) | |
tree | 8d77586112266238af7aa6e45209056fcd08bc81 /modern/src/common/components | |
parent | c36d1bed4a8781b2307fe2bfcdd1c6d4ddd00d64 (diff) | |
download | trackermap-web-651e03d16e0609ff57aafd41334feed3441288ba.tar.gz trackermap-web-651e03d16e0609ff57aafd41334feed3441288ba.tar.bz2 trackermap-web-651e03d16e0609ff57aafd41334feed3441288ba.zip |
Use flags-library to work on Windows
Diffstat (limited to 'modern/src/common/components')
-rw-r--r-- | modern/src/common/components/LocalizationProvider.jsx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/modern/src/common/components/LocalizationProvider.jsx b/modern/src/common/components/LocalizationProvider.jsx index 1c87bc7d..2ace1e24 100644 --- a/modern/src/common/components/LocalizationProvider.jsx +++ b/modern/src/common/components/LocalizationProvider.jsx @@ -186,6 +186,3 @@ export const useTranslationKeys = (predicate) => { const { data } = context.languages[context.language]; return Object.keys(data).filter(predicate); }; - -export const getFlagEmoji = (country) => String.fromCodePoint(...[...country].map(x=>0x1f1a5+x.charCodeAt())); - |