Fixes #14563 FAQ translations on the web page #15079
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.
Fixes #14563
Changes
In the Vuex store action getFAQ, retrieve the language code from the i18n store state, and include it in the query of the FAQ API GET request.
This modification ensures that the FAQ API request aligns with the user's selected language for internationalization.
(Tested this with Ukrainian)
![image](https://private-user-images.githubusercontent.com/20543088/293989047-9ff6bf52-e252-484c-a9b7-ba9569113b39.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1NDQxMzcsIm5iZiI6MTcyMDU0MzgzNywicGF0aCI6Ii8yMDU0MzA4OC8yOTM5ODkwNDctOWZmNmJmNTItZTI1Mi00ODRjLWE5YjctYmE5NTY5MTEzYjM5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA5VDE2NTAzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUxOWM4ZjM2NTQ1ZmM0YTVhYjkxZmFkNzBkMzhhZDZjYTY3OGY5Y2NkNTRmMWY3MTYxYjA1NDM3YTJhMDdiZGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.RbH6YIqvflvXr6UflwKIIdFRuI5kuwAoCTXr14ca57w)
UUID: 67968b90-5b20-45a6-9589-e8055a16cf2a