Reflect the UI in Index page by Clicking a button in the Layout’s component
Here we have a very simple application with 3 major parts: Index file with 1 localized text, A component with just a button that switches between 2 languages, and 3rd the MainLayout, which is used by the Index page and contains the LangBar component.