next.js
4f5df6a8 - refactor: make locales array immutable (#74037)

Commit
1 year ago
refactor: make locales array immutable (#74037) To improve memory efficiency, this marks all the locale arrays as readonly. This ensures that there's no undefined behaviour from accidentally mutating the array, and allows us to use the locales array as a stable reference for a future optimization PR.
Author
Parents
Loading