Skip to content

Commit

Permalink
Merge pull request #54 from while1618/1.9.1
Browse files Browse the repository at this point in the history
v1.9.1
  • Loading branch information
while1618 authored Dec 17, 2024
2 parents 2e38ef2 + 1c65ea1 commit 860b009
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<img src="https://github.com/while1618/i18n-auto-translation/actions/workflows/build.yml/badge.svg" />
</a>
<a href="https://www.npmjs.com/package/i18n-auto-translation" alt="NPM Version">
<img src="https://img.shields.io/badge/npm-v1.9.0-blue" />
<img src="https://img.shields.io/badge/npm-v1.9.1-blue" />
</a>
<a href="LICENSE" alt="License">
<img src="https://img.shields.io/github/license/while1618/i18n-auto-translation" />
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "i18n-auto-translation",
"version": "1.9.0",
"version": "1.9.1",
"description": "Auto translate i18n JSON file(s) to desired language(s).",
"main": "dist/index.js",
"license": "MIT",
Expand Down
4 changes: 3 additions & 1 deletion src/translate/translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,11 @@ export abstract class Translate {
};

private cleanUpTranslations = (value: string): string => {
// This is needed because of this weird bug:
// This is needed because of weird bugs:
// https://github.com/while1618/i18n-auto-translation/issues/12
// https://github.com/while1618/i18n-auto-translation/issues/53
const patterns: [string, string][] = [
['#___#', '#__#'],
['#__ #', '#__#'],
['# __#', '#__#'],
['# __ #', '#__#'],
Expand Down

0 comments on commit 860b009

Please sign in to comment.