mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-08-03 02:56:45 -04:00
(pl) caron spelling
This commit is contained in:
parent
ed33a0b49f
commit
a4d81e2916
@ -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: {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user