🚧 wip migrate to next-i18n

This commit is contained in:
Manuel Ruwe
2022-08-22 09:50:54 +02:00
parent ac4dc23e08
commit 6d0a31f79e
61 changed files with 817 additions and 753 deletions

View File

@@ -1,10 +1,11 @@
import React from 'react';
import { Text, Slider, Stack } from '@mantine/core';
import { useTranslation } from 'next-i18next';
import { useConfig } from '../../tools/state';
import { t } from 'i18next';
export function OpacitySelector() {
const { config, setConfig } = useConfig();
const { t } = useTranslation('settings/customization/shade-selector');
const MARKS = [
{ value: 10, label: '10' },
@@ -31,7 +32,7 @@ export function OpacitySelector() {
return (
<Stack spacing="xs">
<Text>{t('settings.tabs.customizations.settings.opacitySelector.label')}</Text>
<Text>{t('label')}</Text>
<Slider
defaultValue={config.settings.appOpacity || 100}
step={10}