Skip to content

Commit

Permalink
Merge pull request #92 from oamaok/fix-translations-bug
Browse files Browse the repository at this point in the history
Fix translations bug
  • Loading branch information
oamaok authored Mar 23, 2021
2 parents 3c9232f + 9f11ef2 commit 1f9fe77
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

[google web store](https://chrome.google.com/webstore/detail/ezpp/aimihpobjpagjiakhcpijibnaafdniol) - [firefox add-ons](https://addons.mozilla.org/fi/firefox/addon/ezpp/) - [source code](https://github.com/oamaok/ezpp) - [github](https://github.com/oamaok/ezpp) - [issues](https://github.com/oamaok/ezpp/issues)

## v1.10.2
- Fix a bug which caused all the text to disappear in some cases

## v1.10.1
- Fix AR calculations (thanks to [acrylic-style](https://github.com/acrylic-style))
- Add setting to use original song metadata (thanks to [acrylic-style](https://github.com/acrylic-style))
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": "ezpp!",
"version": "1.10.1",
"version": "1.10.2",
"description": "Browser extension for calculating pp!",
"main": "popup/index.js",
"scripts": {
Expand Down
4 changes: 1 addition & 3 deletions popup/translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ let currentLanguage
const setterHooks = []

export const getTranslation = (translationKey, ...args) => {
if (!currentLanguage) return ''

const template =
translations[currentLanguage][translationKey] ||
translations[currentLanguage || FALLBACK_LANGUAGE][translationKey] ||
translations[FALLBACK_LANGUAGE][translationKey]

if (!args.length) return template
Expand Down
2 changes: 1 addition & 1 deletion static/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "ezpp!",
"description": "Calculate pp for a beatmap directly in your browser.",
"version": "1.10.1",
"version": "1.10.2",
"icons": {
"48": "icon48.png",
"128": "icon128.png"
Expand Down

0 comments on commit 1f9fe77

Please sign in to comment.