Translations respect language of user profile #1337
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes in this pull request
Resolves #1330
Blocked-by: pimcore/studio-backend-bundle#1011
Additional info
This pull request introduces several changes to enhance internationalization, improve API functionality, and update build assets. The key updates include the addition of user-specific language support, new API endpoints for document management, and the replacement of outdated build asset files.
Internationalization Enhancements:
language
property to theinitialState
in bothrtkQueryErrorLogger.ts
anduser-slice.ts
to support user-specific language preferences. [1] [2]AppLoader
component to dynamically load translations based on the user's preferred language and switch the i18n language accordingly. [1] [2]API Improvements:
documentAdd
mutation indocument-api-slice.gen.ts
to enable adding documents via API, along with new types (DocumentAddApiResponse
,DocumentAddApiArg
, andDocumentAdd
) to support this functionality. [1] [2] [3]Error
andDevError
types to clean up the API definitions.useDocumentAddMutation
, for interacting with thedocumentAdd
mutation.Build Asset Updates:
entrypoints.json
andmanifest.json
) for previous builds and replaced them with updated versions for the new build (80f3ca92-2343-436f-ad38-339f72f9962c
). [1] [2] [3] [4] [5] [6] [7] [8]