Skip to content

Commit

Permalink
docs(docs): 🗑️ remove docs app, include more i18n locales
Browse files Browse the repository at this point in the history
  • Loading branch information
AmruthPillai committed Aug 28, 2022
1 parent f4a1228 commit 79d3ef1
Show file tree
Hide file tree
Showing 41 changed files with 855 additions and 7,473 deletions.
5 changes: 0 additions & 5 deletions .devcontainer/Dockerfile

This file was deleted.

27 changes: 0 additions & 27 deletions .devcontainer/devcontainer.json

This file was deleted.

12 changes: 4 additions & 8 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Android App
/app

# Schema
schema/dist

Expand All @@ -23,11 +26,4 @@ pnpm-lock.yaml
# Docker
Dockerfile
.dockerignore
docker-compose.yml

# Android App
/app

# Docs
docs/build
docs/.docusaurus
docker-compose.yml
26 changes: 0 additions & 26 deletions .vscode/launch.json

This file was deleted.

334 changes: 0 additions & 334 deletions CHANGELOG.md

This file was deleted.

10 changes: 9 additions & 1 deletion client/config/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,38 @@ export const languages: Language[] = [
{ code: 'ar', name: 'Arabic', localName: 'اَلْعَرَبِيَّةُ' },
{ code: 'bg', name: 'Bulgarian', localName: 'български' },
{ code: 'bn', name: 'Bengali', localName: 'বাংলা' },
{ code: 'ca', name: 'Catalan', localName: 'Valencian' },
{ code: 'cs', name: 'Czech', localName: 'čeština' },
{ code: 'da', name: 'Danish', localName: 'Dansk' },
{ code: 'de', name: 'German', localName: 'Deutsch' },
{ code: 'el', name: 'Greek', localName: 'Ελληνικά' },
{ code: 'en', name: 'English' },
{ code: 'es', name: 'Spanish', localName: 'Español' },
{ code: 'fa', name: 'Persian', localName: 'فارسی' },
{ code: 'fi', name: 'Finnish', localName: 'Suomi' },
{ code: 'fr', name: 'French', localName: 'Français' },
{ code: 'he', name: 'Hebrew', localName: 'Ivrit' },
{ code: 'hi', name: 'Hindi', localName: 'हिन्दी' },
{ code: 'hu', name: 'Hungarian', localName: 'Magyar' },
{ code: 'id', name: 'Indonesian', localName: 'Bahasa Indonesia' },
{ code: 'it', name: 'Italian', localName: 'Italiano' },
{ code: 'ja', name: 'Japanese', localName: '日本語' },
{ code: 'km', name: 'Khmer', localName: 'ភាសាខ្មែរ' },
{ code: 'kn', name: 'Kannada', localName: 'ಕನ್ನಡ' },
{ code: 'ml', name: 'Malayalam', localName: 'മലയാളം' },
{ code: 'ne', name: 'Nepali', localName: 'नेपाली' },
{ code: 'nl', name: 'Dutch', localName: 'Nederlands' },
{ code: 'no', name: 'Norwegian', localName: 'Norsk' },
{ code: 'or', name: 'Odia', localName: 'ଓଡ଼ିଆ' },
{ code: 'fa', name: 'Persian', localName: 'Farsi' },
{ code: 'pl', name: 'Polish', localName: 'Polski' },
{ code: 'pt', name: 'Portuguese', localName: 'Português' },
{ code: 'ro', name: 'Romanian', localName: 'limba română' },
{ code: 'ru', name: 'Russian', localName: 'русский' },
{ code: 'sr', name: 'Serbian', localName: 'српски језик' },
{ code: 'sv', name: 'Swedish', localName: 'Svenska' },
{ code: 'ta', name: 'Tamil', localName: 'தமிழ்' },
{ code: 'tr', name: 'Turkish', localName: 'Türkçe' },
{ code: 'uk', name: 'Ukranian', localName: 'Українська мова' },
{ code: 'vi', name: 'Vietnamese', localName: 'Tiếng Việt' },
{ code: 'zh', name: 'Chinese', localName: '中文' },
].sort((a, b) => a.name.localeCompare(b.name));
Expand Down
8 changes: 8 additions & 0 deletions client/next-i18next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const i18nConfig = {
'ar',
'bg',
'bn',
'ca',
'cs',
'da',
'de',
Expand All @@ -21,16 +22,23 @@ const i18nConfig = {
'hu',
'id',
'it',
'ja',
'km',
'kn',
'ml',
'ne',
'nl',
'no',
'or',
'pl',
'pt',
'ro',
'ru',
'sr',
'sv',
'ta',
'tr',
'uk',
'vi',
'zh',
],
Expand Down
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@
"postcss": "^8.4.16",
"sass": "^1.54.5",
"tailwindcss": "^3.1.8",
"typescript": "^4.7.4"
"typescript": "^4.8.2"
}
}
13 changes: 12 additions & 1 deletion client/wrappers/DateWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const DateWrapper: React.FC<React.PropsWithChildren<unknown>> = ({ children }) =
require('dayjs/locale/ar');
require('dayjs/locale/bg');
require('dayjs/locale/bn');
require('dayjs/locale/ca');
require('dayjs/locale/cs');
require('dayjs/locale/da');
require('dayjs/locale/de');
Expand All @@ -34,19 +35,29 @@ const DateWrapper: React.FC<React.PropsWithChildren<unknown>> = ({ children }) =
require('dayjs/locale/hu');
require('dayjs/locale/id');
require('dayjs/locale/it');
require('dayjs/locale/ja');
require('dayjs/locale/km');
require('dayjs/locale/kn');
require('dayjs/locale/ml');
require('dayjs/locale/ne');
require('dayjs/locale/nl');
require('dayjs/locale/nb'); // no -> nb
require('dayjs/locale/pl');
require('dayjs/locale/pt');
require('dayjs/locale/ro');
require('dayjs/locale/ru');
require('dayjs/locale/sr');
require('dayjs/locale/sv');
require('dayjs/locale/ta');
require('dayjs/locale/tr');
require('dayjs/locale/uk');
require('dayjs/locale/vi');
require('dayjs/locale/zh');

locale && dayjs.locale(locale);
if (locale) {
if (locale === 'no') dayjs.locale('nb');
else dayjs.locale(locale);
}
}, [locale]);

return <>{children}</>;
Expand Down
4 changes: 0 additions & 4 deletions docs/.eslintrc.json

This file was deleted.

20 changes: 0 additions & 20 deletions docs/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions docs/babel.config.js

This file was deleted.

2 changes: 0 additions & 2 deletions docs/docs/deployment/_category_.yml

This file was deleted.

71 changes: 0 additions & 71 deletions docs/docs/deployment/docker.mdx

This file was deleted.

9 changes: 0 additions & 9 deletions docs/docs/deployment/index.mdx

This file was deleted.

Loading

0 comments on commit 79d3ef1

Please sign in to comment.