Multi-language supported root structure

Hello, we wanted to make a multi-language root structure for our application for seo. New version of Flowrouter I set header and metadata with pre-made root array.
You can see an example of the array below.

routers: [
  {
    name: 'home',
    action: function (params, queryParams) {
      this.render('publicLayoutDefault', { page: 'publicPageHome' });
    },
    paths: {
      en: {
        router: '/home',
        title: '',
        meta: {

        }
      },

      tr: {
        router: '/ana-sayfa',
        title: '',
        meta: {
        }
      }
    }
  },
]

The function that runs the array;

RouterUtil.routers.forEach(router => {
  const { name, action, globalTriggersEnter, paths } = router;

  Object.keys(paths).forEach(key => {

    const path = paths[key];

    const { router, title, meta } = path;

    const obj = {
      name: `${key}.${name}`,
      action: action,
      triggersEnter: [] // ChangeLang
    }

    if (globalTriggersEnter) {
      obj.triggersEnter.push(...globalTriggersEnter);
    }

    switch (key) {
      case 'en':
        obj.triggersEnter.push(SetLocaleEn);
        break;
      case 'tr':
        obj.triggersEnter.push(SetLocaleTr);
        break;
    }

    if (title) {
      obj.title = title;
    }

    if (meta) {
      obj.meta = meta;
    }

    console.log(router);
    FlowRouter.route(router, obj);
  });
});

Not Found

FlowRouter.route('*', {
  action: function (params, queryParams) {
    const lang = LocaleShort.get()
    console.log('<===Not Found===> '+lang);
    FlowRouter.go(`${lang}.home`, {});
  }
});

Although it works very well in local, the automatically created roots when installed on the machine constantly come to the “notFound” function and reload the page. Also, when the page is finished loading, I get the following error;
I am sorry for my English. Thank you GT.

Meteor Version 2.2