How to provide a custom static asset for a specific locale?

Magento allows to provide static asset files per locale in the module or theme.
To provide such localized files, put them under web/i18n/<locale> folder inside the module or a theme.
These files have priority above non-localized files.

magento.stackexchange.com/a/96080