Merge branch 'honi'
konyanyachiwaize, ja-HN
This commit is contained in:
commit
caad4424b3
@ -24,6 +24,7 @@ const languages = [
|
|||||||
'id-ID',
|
'id-ID',
|
||||||
'ja-JP',
|
'ja-JP',
|
||||||
'ja-KS',
|
'ja-KS',
|
||||||
|
'ja-HN',
|
||||||
'kab-KAB',
|
'kab-KAB',
|
||||||
'kn-IN',
|
'kn-IN',
|
||||||
'ko-KR',
|
'ko-KR',
|
||||||
@ -47,7 +48,7 @@ const primaries = {
|
|||||||
const locales = languages.reduce((a, c) => (a[c] = yaml.load(fs.readFileSync(`${__dirname}/${c}.yml`, 'utf-8')) || {}, a), {});
|
const locales = languages.reduce((a, c) => (a[c] = yaml.load(fs.readFileSync(`${__dirname}/${c}.yml`, 'utf-8')) || {}, a), {});
|
||||||
|
|
||||||
module.exports = Object.entries(locales)
|
module.exports = Object.entries(locales)
|
||||||
.reduce((a, [k ,v]) => (a[k] = (() => {
|
.reduce((a, [k, v]) => (a[k] = (() => {
|
||||||
const [lang] = k.split('-');
|
const [lang] = k.split('-');
|
||||||
switch (k) {
|
switch (k) {
|
||||||
case 'ja-JP': return v;
|
case 'ja-JP': return v;
|
||||||
|
1682
locales/ja-HN.yml
Normal file
1682
locales/ja-HN.yml
Normal file
File diff suppressed because it is too large
Load Diff
@ -2,6 +2,7 @@ export function nyaize(text: string): string {
|
|||||||
return text
|
return text
|
||||||
// ja-JP
|
// ja-JP
|
||||||
.replace(/な/g, 'にゃ').replace(/ナ/g, 'ニャ').replace(/ナ/g, 'ニャ')
|
.replace(/な/g, 'にゃ').replace(/ナ/g, 'ニャ').replace(/ナ/g, 'ニャ')
|
||||||
|
.replace(/(?<=こ)んにち[は|わ]/g, 'にゃにゃちわ').replace(/(?<=コ)ンニチ[ハ|ワ]/g, 'ニャニャチワ').replace(/(?<=コ)ンニチ[ハ|ワ]/g, 'ニャニャチワ')
|
||||||
// en-US
|
// en-US
|
||||||
.replace(/(?<=n)a/gi, x => x === 'A' ? 'YA' : 'ya')
|
.replace(/(?<=n)a/gi, x => x === 'A' ? 'YA' : 'ya')
|
||||||
.replace(/(?<=morn)ing/gi, x => x === 'ING' ? 'YAN' : 'yan')
|
.replace(/(?<=morn)ing/gi, x => x === 'ING' ? 'YAN' : 'yan')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user