From a4d81e2916bc60e2c26a9580197cebc701e91154 Mon Sep 17 00:00:00 2001 From: Andrea Vos Date: Sun, 6 Jul 2025 16:49:38 +0200 Subject: [PATCH] (pl) caron spelling --- components/EasterEgg.vue | 2 +- composables/useSpelling.ts | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/components/EasterEgg.vue b/components/EasterEgg.vue index da822e121..80f010f8d 100644 --- a/components/EasterEgg.vue +++ b/components/EasterEgg.vue @@ -50,7 +50,7 @@ const konami = ['ArrowUp', 'ArrowUp', 'ArrowDown', 'ArrowDown', 'ArrowLeft', 'Ar const EGGS_BY_LOCALE = { pl: { - spelling: 'futurysci', + spelling: 'futurysci', // or 'caron' message: 'Gratulacje! Udało Ći śę odblokować easter egga!
Szczeguły w stopce strony, u samego dołu!', }, en: { diff --git a/composables/useSpelling.ts b/composables/useSpelling.ts index c259ebb28..69c6d21d0 100644 --- a/composables/useSpelling.ts +++ b/composables/useSpelling.ts @@ -30,6 +30,14 @@ export default () => { return futurus.futuriseText(str); } + if (config.locale === 'pl' && store.spelling === 'caron') { + // https://www.reddit.com/r/linguisticshumor/comments/1lqrhro/seriously_why_dont_we_have_%C4%8D_%C5%99_%C5%A1_and_%C5%BE_instead_of/ + return str + .replaceAll('cz', 'č').replaceAll('rz', 'ř').replaceAll('sz', 'š').replaceAll('ż', 'ž') + .replaceAll('Cz', 'Č').replaceAll('Rz', 'Ř').replaceAll('sz', 'Š').replaceAll('ż', 'Ž') + ; + } + if (config.locale === 'en' && store.spelling === 'shavian') { if (typeof window === 'undefined' || !window.toShavian) { this.setSpelling(''); // dependencies not loaded, disable