The Wayback Machine - https://web.archive.org/web/20220309045322/https://github.com/topics/internationalization
Skip to content
#

internationalization

Here are 1,024 public repositories matching this topic...

Maskim
Maskim commented Nov 2, 2020

Hello,

I'm using vue-i18n on my nuxt app with typescript.

I have a simple question :
Why in

declare module 'vue/types/options' {
	interface ComponentOptions<V extends Vue> {
		i18n?: {
			messages?: VueI18n.LocaleMessages
			dateTimeFormats?: VueI18n.DateTimeFormats
			numberFormats?: VueI18n.NumberFormats
			sharedMessages?: VueI18n.LocaleMessages
		}
	}
}

`local

weblate
Ketec
Ketec commented Jun 15, 2021

If the locale is set using this.translocoLocaleService.setLocale(locale) (or default) it is overwritten the moment this.translocoService.setActiveLang(lang); is called.

Because of the https://github.com/ngneat/transloco/blob/master/projects/ngneat/transloco-locale/src/lib/transloco-locale.service.ts
translocoService.langChanges$ subscription.

There is no property or config to disable

Tal500
Tal500 commented Oct 11, 2021

The Problem
The initialization of svelte-i18n sets the preferred language in a global variable.
While this is acceptable for client, it is not acceptable for the server (with SSR).

The server might be async, in which it can proccess at the same time both request for one language and a request for other language.
However, as far as I can see, setting a new locale will override the existin

Improve this page

Add a description, image, and links to the internationalization topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the internationalization topic, visit your repo's landing page and select "manage topics."

Learn more