[ ] π Documentation (updates to the documentation, readme or JSdoc annotations)
[x] π Bug fix (a non-breaking change that fixes an issue)
[ ] π Enhancement (improving an existing functionality like performance)
[ ] β¨ New feature (a non-breaking change that adds functionality)
[ ] π§Ή Chore (updates to the build process or auxiliary tools and libraries)
[ ] β οΈ Breaking change (fix or feature that would cause existing functionality to change)
π Description
Related to #3022 but does not resolve it.
Resolves #3234
Resolves #3188
This only changes the paths in the generated options to be relative, this is still not desirable but better than exposing absolute paths as it could expose sensitive information.
Since this also influences the paths found in the locales array returned by useI18n I have made this a configurable option with experimental.generatedLocaleFilePathFormat to prevent this being a breaking change, in the future I want to look into removing the paths entirely or hashing the file paths.
I'm not sure if there are use cases for end users to have access to the files property on the generated locale options.
π Linked issue
3234
3188
3022
β Type of change
π Description
Related to #3022 but does not resolve it.
Resolves #3234 Resolves #3188
This only changes the paths in the generated options to be relative, this is still not desirable but better than exposing absolute paths as it could expose sensitive information.
Since this also influences the paths found in the
locales
array returned byuseI18n
I have made this a configurable option withexperimental.generatedLocaleFilePathFormat
to prevent this being a breaking change, in the future I want to look into removing the paths entirely or hashing the file paths.I'm not sure if there are use cases for end users to have access to the
files
property on the generated locale options.π Checklist