Skip to content

Commit

Permalink
chore: add more langs
Browse files Browse the repository at this point in the history
  • Loading branch information
bigint committed Dec 30, 2022
1 parent 5e23088 commit 8b36da4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
3 changes: 3 additions & 0 deletions apps/web/.linguirc
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"locales": [
"en",
"es",
"ta",
"kn",
"qaa"
],
"pseudoLocale": "qaa",
Expand Down
4 changes: 1 addition & 3 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"version": "0.0.0",
"private": true,
"scripts": {
"predev": "lingui compile",
"dev": "next dev --port 4783",
"prebuild": "lingui compile",
"dev": "lingui compile; next dev --port 4783",
"build": "next build",
"start": "next start",
"typecheck": "tsc --noEmit",
Expand Down
10 changes: 8 additions & 2 deletions apps/web/src/lib/i18n.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { i18n } from '@lingui/core';
import { IS_PREVIEW, IS_PRODUCTION, LS_KEYS } from 'data/constants';
import dayjs from 'dayjs';
import { en } from 'make-plural/plurals';
import { en, es, kn, ta } from 'make-plural/plurals';

export const supportedLocales: Record<string, string> = {
en: 'English'
en: 'English',
es: 'Español',
ta: 'தமிழ்',
kn: 'ಕನ್ನಡ'
};

if (!IS_PRODUCTION || IS_PREVIEW) {
Expand All @@ -15,6 +18,9 @@ const defaultLocale = 'en';

i18n.loadLocaleData({
en: { plurals: en },
es: { plurals: es },
ta: { plurals: ta },
kn: { plurals: kn },
qaa: { plurals: en }
});

Expand Down

1 comment on commit 8b36da4

@vercel
Copy link

@vercel vercel bot commented on 8b36da4 Dec 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

web – ./apps/web

web-git-main-lenster.vercel.app
lenster.vercel.app
web-lenster.vercel.app
lenster.xyz

Please sign in to comment.