Skip to content

Commit 8e222ae

Browse files
authored
Fix locale import missing translation properties (#2772)
* Fix locale import missing translation properties
1 parent 7f86509 commit 8e222ae

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ui/v2.5/src/App.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ export const App: React.FC = () => {
7575
const defaultMessageLanguage = languageMessageString(defaultLocale);
7676
const messageLanguage = languageMessageString(language);
7777

78-
const defaultMessages = await locales[defaultMessageLanguage]();
78+
const defaultMessages = (await locales[defaultMessageLanguage]()).default;
7979
const mergedMessages = cloneDeep(Object.assign({}, defaultMessages));
80-
const chosenMessages = await locales[messageLanguage]();
80+
const chosenMessages = (await locales[messageLanguage]()).default;
8181
mergeWith(mergedMessages, chosenMessages, (objVal, srcVal) => {
8282
if (srcVal === "") {
8383
return objVal;

ui/v2.5/src/components/Changelog/versions/v0161.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
### 🐛 Bug fixes
2+
* Fix New button not being localised correctly. ([#2772](https://github.com/stashapp/stash/pull/2772))
23
* Fix scene player losing focus when playing next/previous scene. ([#2758](https://github.com/stashapp/stash/pull/2758))
34
* Fix UI crash when % character used in tag names. ([#2757](https://github.com/stashapp/stash/pull/2757))
45
* Fix keyboard shortcuts not working after selecting an object. ([#2750](https://github.com/stashapp/stash/pull/2750))

0 commit comments

Comments
 (0)