Giter Club home page Giter Club logo

Comments (5)

maguayo avatar maguayo commented on August 15, 2024 1

I can confirm that during the re-rendering process of a component, the translation dictionary is removed. Consequently, if there is a fallback or default value set, that is what will be displayed.

from qwik-speak.

robisim74 avatar robisim74 commented on August 15, 2024

Are you using the Inline plugin in production?

from qwik-speak.

DennisVanIngen avatar DennisVanIngen commented on August 15, 2024

Yes I do, this is one of my vite.config.ts files:

import { qwikCity } from '@builder.io/qwik-city/vite';
import { qwikVite } from '@builder.io/qwik/optimizer';
import { qwikNxVite } from 'qwik-nx/plugins';
import { qwikSpeakInline } from 'qwik-speak/inline';
import { defineConfig } from 'vite';
import tsconfigPaths from 'vite-tsconfig-paths';

export default defineConfig({
  cacheDir: '../../node_modules/.vite/apps/app',
  plugins: [
    qwikNxVite(),
    qwikCity(),
    qwikVite({
      client: {
        outDir: '../../dist/apps/app/client',
      },
      ssr: {
        outDir: '../../dist/apps/app/server',
      },
    }),
    qwikSpeakInline({
      supportedLangs: ['en-US', 'nl-NL', 'pl-PL', 'sv-SE'],
      defaultLang: 'nl-NL',
      assetsPath: 'apps/app/i18n',
    }),
    tsconfigPaths({ root: '../../' }),
  ],
  server: {
    fs: {
      // Allow serving files from the project root
      allow: ['../../'],
    },
  },
  preview: {
    cors: {
      origin: '*',
      methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
      preflightContinue: false,
      optionsSuccessStatus: 204,
    },
    headers: {
      'Cache-Control': 'public, max-age=600',
    },
  },
  test: {
    globals: true,
    cache: {
      dir: '../../node_modules/.vitest',
    },
    environment: 'node',
    include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
  },
  optimizeDeps: { include: ['@auth/core'] },
});

from qwik-speak.

robisim74 avatar robisim74 commented on August 15, 2024

from qwik-speak.

DennisVanIngen avatar DennisVanIngen commented on August 15, 2024

I'm sorry it was not a bug, for some reason I forgot to set the base URL. Everything works now. Thnx for your help!

from qwik-speak.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.