Skip to content

Commit

Permalink
Translate perspective widget labels (#1088)
Browse files Browse the repository at this point in the history
* Translate perspective widget labels

* Automatic frontend build

* Switch to correct derfault perspective

* Automatic frontend build

---------

Co-authored-by: markus-moser <[email protected]>
  • Loading branch information
markus-moser and markus-moser authored Feb 27, 2025
1 parent ec01756 commit 51c082c
Show file tree
Hide file tree
Showing 32 changed files with 55 additions and 54 deletions.
2 changes: 1 addition & 1 deletion assets/js/src/core/modules/app/app-loader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const AppLoader = (props: IAppLoaderProps): React.JSX.Element => {
}

async function initActivePerspective (): Promise<any> {
const perspectiveFetcher = dispatch(perspectivesApi.endpoints.perspectiveGetConfigById.initiate({ perspectiveId: 'my_custom' }))
const perspectiveFetcher = dispatch(perspectivesApi.endpoints.perspectiveGetConfigById.initiate({ perspectiveId: 'studio_default_perspective' }))

perspectiveFetcher
.then(({ data, isSuccess, isError, error }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { store } from '@Pimcore/app/store'
import { selectActivePerspective } from '@Pimcore/modules/perspectives/active-perspective-slice'
import { type WidgetConfig, type PerspectiveConfigDetail } from '@Pimcore/modules/perspectives/perspectives-slice.gen'
import { type IJsonTabNode, type IJsonModel } from 'flexlayout-react'
import { t } from 'i18next'
import { isNil } from 'lodash'

export const getInitialModelJson = (): IJsonModel => {
Expand Down Expand Up @@ -120,7 +121,7 @@ const widgetsToModelJson = (widgets?: WidgetConfig[]): IJsonTabNode[] => {
}
result.push({
type: 'tab',
name: widget.name,
name: t(widget.name),
component: widget.widgetType,
enableClose: false,
config: widget
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"entrypoints": {
"vendor": {
"js": [
"/bundles/pimcorestudioui/build/0ab475af-48bd-4560-9753-ceebcd7592c5/vendor.js"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"bundles/pimcorestudioui/build/0ab475af-48bd-4560-9753-ceebcd7592c5/vendor.js": "/bundles/pimcorestudioui/build/0ab475af-48bd-4560-9753-ceebcd7592c5/vendor.js"
}
12 changes: 0 additions & 12 deletions public/build/3798bb8b-041b-45eb-8e22-9d5116f9f659/entrypoints.json

This file was deleted.

14 changes: 0 additions & 14 deletions public/build/3798bb8b-041b-45eb-8e22-9d5116f9f659/manifest.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"entrypoints": {
"main": {
"js": [
"/bundles/pimcorestudioui/build/c4af9b07-8011-49a8-bf5d-9808ca62827e/main.js"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"bundles/pimcorestudioui/build/c4af9b07-8011-49a8-bf5d-9808ca62827e/main.js": "/bundles/pimcorestudioui/build/c4af9b07-8011-49a8-bf5d-9808ca62827e/main.js"
}

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions public/build/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/entrypoints.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"entrypoints": {
"core-dll": {
"css": [
"/bundles/pimcorestudioui/build/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/core-dll.css"
],
"js": [
"/bundles/pimcorestudioui/build/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/core-dll.js"
]
}
}
}
14 changes: 14 additions & 0 deletions public/build/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"bundles/pimcorestudioui/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/core-dll.css": "/bundles/pimcorestudioui/build/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/core-dll.css",
"bundles/pimcorestudioui/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/core-dll.js": "/bundles/pimcorestudioui/build/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/core-dll.js",
"bundles/pimcorestudioui/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/105.js": "/bundles/pimcorestudioui/build/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/105.js",
"bundles/pimcorestudioui/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/fonts/Lato-Light.ttf": "/bundles/pimcorestudioui/build/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/fonts/Lato-Light.c7400fca.ttf",
"bundles/pimcorestudioui/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/fonts/Lato-Regular.ttf": "/bundles/pimcorestudioui/build/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/fonts/Lato-Regular.9d883d54.ttf",
"bundles/pimcorestudioui/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/fonts/Lato-Bold.ttf": "/bundles/pimcorestudioui/build/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/fonts/Lato-Bold.636be8de.ttf",
"bundles/pimcorestudioui/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/images/spritesheet.svg": "/bundles/pimcorestudioui/build/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/images/spritesheet.a4e0eb7a.svg",
"bundles/pimcorestudioui/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/images/spritesheet-2x.png": "/bundles/pimcorestudioui/build/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/images/spritesheet-2x.7ea3a6d4.png",
"bundles/pimcorestudioui/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/images/spritesheet.png": "/bundles/pimcorestudioui/build/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/images/spritesheet.ef32ea2b.png",
"bundles/pimcorestudioui/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/images/marker-icon.png": "/bundles/pimcorestudioui/build/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/images/marker-icon.2b3e1faf.png",
"bundles/pimcorestudioui/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/images/layers-2x.png": "/bundles/pimcorestudioui/build/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/images/layers-2x.8f2c4d11.png",
"bundles/pimcorestudioui/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/images/layers.png": "/bundles/pimcorestudioui/build/d18b1da8-3682-41aa-90f3-02e9a32b7fe8/images/layers.416d9136.png"
}

0 comments on commit 51c082c

Please sign in to comment.