npm package diff

Package: @forge/tunnel

Versions: 5.3.3-next.0-experimental-10722bc - 5.5.0-next.13

File: package/out/servers/native-ui-tunnel-server.js

Index: package/out/servers/native-ui-tunnel-server.js
===================================================================
--- package/out/servers/native-ui-tunnel-server.js
+++ package/out/servers/native-ui-tunnel-server.js
@@ -12,9 +12,9 @@
     server;
     constructor(tunnelArgs) {
         super(tunnelArgs);
         this.tunnelArgs = tunnelArgs;
-        const { key, path, port, permissions, remotes } = tunnelArgs;
+        const { key, path, port, permissions, remotes, i18nConfig } = tunnelArgs;
         const entrypoint = { name: key, path, functions: [] };
         const config = (0, bundler_1.getNativeUiBuildConfig)([entrypoint]);
         const compiler = (0, bundler_1.getCompiler)({
             ...config,
@@ -36,8 +36,14 @@
                 middlewares.splice(index, 0, {
                     name: 'custom-ui-scripts-middleware',
                     middleware: this.getCustomUIHtmlTransformMiddleware(permissions, remotes)
                 });
+                if (i18nConfig) {
+                    middlewares.unshift({
+                        name: 'i18n-resources-middleware',
+                        middleware: this.getI18nResourcesMiddleware(i18nConfig)
+                    });
+                }
                 middlewares.unshift({
                     name: 'logging-middleware',
                     middleware: (req, _, next) => {
                         this.logFileServed(req.url, (input) => cli_shared_1.Text.tunnel.customUI.fileServed(input, this.key));