The code changes include: - Updating the i18n configuration to export the `SUPPORTED_LANGUAGES` array. - Refactoring the `getRequestConfig` function to accept a `locale` parameter. - Simplifying the logic for determining the `locale` based on the `accept-language` header. - Loading the appropriate messages file based on the `locale` parameter. This commit improves the i18n functionality of the project and allows for easier addition of new languages.
1.3 KiB
1.3 KiB