From 3e15666089998b2c0415db32998ce0e5016d218f Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 5 Jul 2023 23:42:34 -0700 Subject: [PATCH] fix: :bug: fallback locales for skin tone labels Closes #10406 --- packages/client/src/components/MkEmojiPicker.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/client/src/components/MkEmojiPicker.vue b/packages/client/src/components/MkEmojiPicker.vue index 17c1a9302d..09d61518d8 100644 --- a/packages/client/src/components/MkEmojiPicker.vue +++ b/packages/client/src/components/MkEmojiPicker.vue @@ -220,12 +220,12 @@ const unicodeEmojiSkinTones = [ ]; const unicodeEmojiSkinToneLabels = [ - i18n.ts._skinTones.yellow, - i18n.ts._skinTones.light, - i18n.ts._skinTones.mediumLight, - i18n.ts._skinTones.medium, - i18n.ts._skinTones.mediumDark, - i18n.ts._skinTones.dark, + i18n.ts._skinTones?.yellow ?? "Yellow", + i18n.ts._skinTones?.light ?? "Light", + i18n.ts._skinTones?.mediumLight ?? "Medium Light", + i18n.ts._skinTones?.medium ?? "Medium", + i18n.ts._skinTones?.mediumDark ?? "Medium Dark", + i18n.ts._skinTones?.dark ?? "Dark", ]; const size = computed(() =>