i18nNoLocaleFoundInPath: You tried to use an i18n utility on a path that doesn’t contain any locale. You can use
pathHasLocalefirst to determine if the path has a locale.
An i18n utility tried to use the locale from a URL path that does not contain one. You can prevent this error by using pathHasLocale to check URLs for a locale first before using i18n utilities.
Error Reference
© 2021 Fred K. Schott
Licensed under the MIT License.
https://docs.astro.build/en/reference/errors/i18n-no-locale-found-in-path/