mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-16 16:05:33 +02:00
♻️ Create languages package (#644)
This commit is contained in:
parent
05fe2edaea
commit
d973cbccb5
7 changed files with 18 additions and 3 deletions
|
@ -1,23 +0,0 @@
|
|||
{
|
||||
"ca": "Català",
|
||||
"cs": "Česky",
|
||||
"da": "Dansk",
|
||||
"de": "Deutsch",
|
||||
"en": "English",
|
||||
"es": "Español",
|
||||
"fi": "Suomi",
|
||||
"fr": "Français",
|
||||
"hr": "Hrvatski",
|
||||
"hu": "Magyar",
|
||||
"it": "Italiano",
|
||||
"ko": "한국어",
|
||||
"nl": "Nederlands",
|
||||
"pl": "Polski",
|
||||
"pt": "Português",
|
||||
"pt-BR": "Português - Brasil",
|
||||
"ru": "Pусский",
|
||||
"sk": "Slovenčina",
|
||||
"sv": "Svenska",
|
||||
"vi": "Tiếng Việt",
|
||||
"zh": "汉语"
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
const path = require("path");
|
||||
const languages = require("./languages.json");
|
||||
const languages = require("@rallly/languages/languages.json");
|
||||
|
||||
module.exports = {
|
||||
i18n: {
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
"dependencies": {
|
||||
"@rallly/backend": "*",
|
||||
"@rallly/database": "*",
|
||||
"@rallly/languages":"*",
|
||||
"@rallly/tailwind-config": "*",
|
||||
"@floating-ui/react-dom-interactions": "^0.13.3",
|
||||
"@headlessui/react": "^1.7.7",
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
import languages from "@rallly/languages";
|
||||
import clsx from "clsx";
|
||||
import Cookies from "js-cookie";
|
||||
import { useTranslation } from "next-i18next";
|
||||
|
||||
import ChevronDown from "@/components/icons/chevron-down.svg";
|
||||
|
||||
import languages from "../../../languages.json";
|
||||
|
||||
export const LanguageSelect: React.FunctionComponent<{
|
||||
className?: string;
|
||||
onChange?: (language: string) => void;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue