Skip to content
Snippets Groups Projects
Unverified Commit bc83963a authored by syuilo's avatar syuilo
Browse files

English nyaize

parent 94715e61
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,8 @@ export function nyaize(text: string): string {
return text
// ja-JP
.replace(/な/g, 'にゃ').replace(/ナ/g, 'ニャ').replace(/ナ/g, 'ニャ')
// en-US
.replace(/morning/gi, 'mornyan').replace(/everyone/gi, 'everynyan')
// ko-KR
.replace(/[나-낳]/g, match => String.fromCharCode(
match.codePointAt(0)! + ''.charCodeAt(0) - ''.charCodeAt(0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment