feat: automatically detect language on server and translate UI (#530)
* feat: detect language on the server and translate page * translate auth pages * PR reviews
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { LOCALE } from '$lib/utils/types';
|
||||
import { writable } from 'svelte/store';
|
||||
import i18n, { type Config } from 'sveltekit-i18n';
|
||||
import { LOCALE } from '$lib/utils/types';
|
||||
|
||||
interface Params {
|
||||
dateValue: number;
|
||||
@@ -10,8 +10,7 @@ interface Params {
|
||||
val: Date;
|
||||
}
|
||||
|
||||
const config: Config<Partial<Params>> = {
|
||||
initLocale: 'en',
|
||||
export const config: Config<Partial<Params>> = {
|
||||
// parser: parser(),
|
||||
loaders: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user