Merge branch 'honi'

konyanyachiwaize, ja-HN
This commit is contained in:
ThinaticSystem 2021-07-25 17:48:33 +09:00
commit caad4424b3
3 changed files with 1685 additions and 1 deletions

View File

@ -24,6 +24,7 @@ const languages = [
'id-ID',
'ja-JP',
'ja-KS',
'ja-HN',
'kab-KAB',
'kn-IN',
'ko-KR',

1682
locales/ja-HN.yml Normal file

File diff suppressed because it is too large Load Diff

View File

@ -2,6 +2,7 @@ export function nyaize(text: string): string {
return text
// ja-JP
.replace(/な/g, 'にゃ').replace(/ナ/g, 'ニャ').replace(/ナ/g, 'ニャ')
.replace(/(?<=こ)んにち[は|わ]/g, 'にゃにゃちわ').replace(/(?<=コ)ンニチ[ハ|ワ]/g, 'ニャニャチワ').replace(/(?<=コ)ンニチ[ハ|ワ]/g, 'ニャニャチワ')
// en-US
.replace(/(?<=n)a/gi, x => x === 'A' ? 'YA' : 'ya')
.replace(/(?<=morn)ing/gi, x => x === 'ING' ? 'YAN' : 'yan')