docs: def register_i18n_js(self, *paths):
          """Register templates path translations files, like
          `select2/select2_locale_{lang}.js`.
  
          Only existing files are registered.
          """
          languages = self.config["BABEL_ACCEPT_LANGUAGES"]
          assets = self.extensions["webassets"]
  
          for path in paths:
              for lang in languages:
                  filename = path.format(lang=lang)
                  try:
                      assets.resolver.search_for_source(assets, filename)
                  except IOError:
                      pass
                      # logger.debug('i18n JS not found, skipped: "%s"', filename)
                  else:
                      self.register_asset("js-i18n-" + lang, filename)