(pl) caron spelling

This commit is contained in:
Andrea Vos 2025-07-06 16:49:38 +02:00
parent ed33a0b49f
commit a4d81e2916
2 changed files with 9 additions and 1 deletions

View File

@ -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!<br/>Szczeguły w stopce strony, u samego dołu!',
},
en: {

View File

@ -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