mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-06 21:56:03 +02:00
🌐 Remove abandoned languages (#739)
This commit is contained in:
parent
47d5d1c70d
commit
1920de1402
5 changed files with 16 additions and 11 deletions
|
@ -10,7 +10,7 @@ const withBundleAnalyzer = require("@next/bundle-analyzer")({
|
||||||
});
|
});
|
||||||
|
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
i18n: i18n,
|
i18n: { ...i18n, localeDetection: false },
|
||||||
productionBrowserSourceMaps: true,
|
productionBrowserSourceMaps: true,
|
||||||
output: "standalone",
|
output: "standalone",
|
||||||
transpilePackages: [
|
transpilePackages: [
|
||||||
|
|
|
@ -201,5 +201,6 @@
|
||||||
"monthlyBillingDescription": "per month",
|
"monthlyBillingDescription": "per month",
|
||||||
"plan_finalizePolls": "Finalize polls",
|
"plan_finalizePolls": "Finalize polls",
|
||||||
"plan_extendedPollLife": "Keep polls indefinitely",
|
"plan_extendedPollLife": "Keep polls indefinitely",
|
||||||
"plan_prioritySupport": "Priority support"
|
"plan_prioritySupport": "Priority support",
|
||||||
|
"becomeATranslator": "Help translate"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
|
import { ArrowUpRight } from "@rallly/icons";
|
||||||
import { Button } from "@rallly/ui/button";
|
import { Button } from "@rallly/ui/button";
|
||||||
import { Form, FormField, FormItem, FormLabel } from "@rallly/ui/form";
|
import { Form, FormField, FormItem, FormLabel } from "@rallly/ui/form";
|
||||||
|
import Link from "next/link";
|
||||||
import { useRouter } from "next/router";
|
import { useRouter } from "next/router";
|
||||||
import { useTranslation } from "next-i18next";
|
import { useTranslation } from "next-i18next";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
|
@ -44,7 +46,7 @@ export const LanguagePreference = () => {
|
||||||
</FormItem>
|
</FormItem>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
<div className="mt-6">
|
<div className="mt-6 flex flex-wrap gap-2">
|
||||||
<Button
|
<Button
|
||||||
variant="primary"
|
variant="primary"
|
||||||
disabled={!form.formState.isDirty}
|
disabled={!form.formState.isDirty}
|
||||||
|
@ -53,6 +55,15 @@ export const LanguagePreference = () => {
|
||||||
>
|
>
|
||||||
<Trans i18nKey="save" />
|
<Trans i18nKey="save" />
|
||||||
</Button>
|
</Button>
|
||||||
|
<Button asChild variant="ghost">
|
||||||
|
<Link
|
||||||
|
target="_blank"
|
||||||
|
href="https://support.rallly.co/contribute/translations"
|
||||||
|
>
|
||||||
|
<Trans i18nKey="becomeATranslator" defaults="Help translate" />
|
||||||
|
<ArrowUpRight className="h-4 w-4" />
|
||||||
|
</Link>
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</Form>
|
</Form>
|
||||||
|
|
|
@ -3,7 +3,7 @@ import test, { expect } from "@playwright/test";
|
||||||
test("should show correct language if supported", async ({ browser }) => {
|
test("should show correct language if supported", async ({ browser }) => {
|
||||||
const context = await browser.newContext({ locale: "de" });
|
const context = await browser.newContext({ locale: "de" });
|
||||||
const page = await context.newPage();
|
const page = await context.newPage();
|
||||||
await page.goto("/");
|
await page.goto("/new");
|
||||||
await expect(page.locator("text=Neue Umfrage")).toBeVisible();
|
await expect(page.locator("text=Neue Umfrage")).toBeVisible();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -4,20 +4,13 @@
|
||||||
"da": "Dansk",
|
"da": "Dansk",
|
||||||
"de": "Deutsch",
|
"de": "Deutsch",
|
||||||
"en": "English",
|
"en": "English",
|
||||||
"es": "Español",
|
|
||||||
"fi": "Suomi",
|
"fi": "Suomi",
|
||||||
"fr": "Français",
|
"fr": "Français",
|
||||||
"hr": "Hrvatski",
|
"hr": "Hrvatski",
|
||||||
"hu": "Magyar",
|
"hu": "Magyar",
|
||||||
"it": "Italiano",
|
|
||||||
"ko": "한국어",
|
|
||||||
"nl": "Nederlands",
|
"nl": "Nederlands",
|
||||||
"pl": "Polski",
|
"pl": "Polski",
|
||||||
"pt": "Português",
|
|
||||||
"pt-BR": "Português - Brasil",
|
"pt-BR": "Português - Brasil",
|
||||||
"ru": "Pусский",
|
|
||||||
"sk": "Slovenčina",
|
"sk": "Slovenčina",
|
||||||
"sv": "Svenska",
|
|
||||||
"vi": "Tiếng Việt",
|
|
||||||
"zh": "汉语"
|
"zh": "汉语"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue