pl-fe: update nyaize for russian and polish

Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
mkljczk
2025-03-25 12:50:54 +01:00
parent f430a9c8ae
commit 8294bd2636

View File

@ -21,6 +21,10 @@ const nyaize = (text: string) =>
.replace(/a/gi, ifAfter('n', x => x === 'A' ? 'YA' : 'ya'))
.replace(/ing/gi, ifAfter('morn', x => x === 'ING' ? 'YAN' : 'yan'))
.replace(/one/gi, ifAfter('every', x => x === 'ONE' ? 'NYAN' : 'nyan'))
// pl-PL
.replace(/ł/gi, ifAfter('mia', x => x === 'Ł' ? 'U' : 'u'))
// ru-RU
.replace(/а/gi, ifAfter('н', x => x === 'А' ? 'Я' : 'я'))
// ko-KR
.replace(koRegex1, match => !isNaN(match.charCodeAt(0)) ? String.fromCharCode(
match.charCodeAt(0) + '냐'.charCodeAt(0) - '나'.charCodeAt(0),