chore: Created blog post minecraft on kubernetes #12
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.
This pull request introduces internationalization (i18n) support to the blog components, enabling dynamic language selection (English and French) for blog post content, UI labels, and accessibility attributes. The changes also refactor how blog post data is loaded based on the current language, and update various components to use translation utilities for improved localization.
Internationalization and Localization Enhancements:
i18npackage as a dependency inpackage.jsonto support translations.getLangFromUrlanduseTranslationsutilities in multiple components (e.g.,DatePub.astro,Hero.astro,Languages.astro,LastPost.astro,ListPosts.astro,Tags.astro,Footer.astro,Header.astro,NavArticle.astro) to detect the current language and fetch appropriate translations for UI text and accessibility labels. [1] [2] [3] [4] [5] [6] [7] [8] [9]Dynamic Content Loading Based on Language:
Languages.astro,LastPost.astro,ListPosts.astro,Tags.astro) to load posts from the appropriate language-specific directory (enorfr) depending on the current language. [1] [2] [3] [4]UI and Accessibility Improvements:
aria-labelattributes and navigation links to use translated text, improving accessibility for multilingual users. [1] [2] [3] [4] [5] [6]LanguagePickercomponent to the header for user language selection. [1] [2]Other Minor Updates:
.astro/data-store.jsonand.astro/settings.jsonto reflect the latest build and configuration state. [1] [2]These changes collectively enable a more flexible, accessible, and user-friendly multilingual experience across the blog.