Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed Dec 14, 2021
2 parents 3762895 + 6319dd1 commit 8451436
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion locales/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ const primaries = {
'zh': 'CN',
};

const locales = languages.reduce((a, c) => (a[c] = yaml.load(fs.readFileSync(`${__dirname}/${c}.yml`, 'utf-8')) || {}, a), {});
// 何故か文字列にバックスペース文字が混入することがあり、YAMLが壊れるので取り除く
const clean = (text) => text.replace(new RegExp(String.fromCodePoint(0x08), 'g'), '');

const locales = languages.reduce((a, c) => (a[c] = yaml.load(clean(fs.readFileSync(`${__dirname}/${c}.yml`, 'utf-8'))) || {}, a), {});

module.exports = Object.entries(locales)
.reduce((a, [k ,v]) => (a[k] = (() => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "misskey",
"version": "12.99.0",
"version": "12.99.1",
"codename": "indigo",
"repository": {
"type": "git",
Expand Down

0 comments on commit 8451436

Please sign in to comment.