add Amharic language

This commit is contained in:
Amruth Pillai
2022-10-07 10:31:03 +02:00
parent 91e55e642c
commit b505199319
5 changed files with 15 additions and 4 deletions

View File

@ -18,6 +18,7 @@ You have complete control over what goes into your resume, how it looks, what co
## Table of Contents
- [Reactive Resume](#reactive-resume)
- [Go to App | [Docs](https://docs.rxresu.me)](#go-to-app--docs)
- [Table of Contents](#table-of-contents)
- [Features](#features)
- [Languages](#languages)
@ -26,6 +27,8 @@ You have complete control over what goes into your resume, how it looks, what co
- [Contributing](#contributing)
- [Report Bugs and Feature Requests](#report-bugs-and-feature-requests)
- [Donations](#donations)
- [GitHub Sponsor](#github-sponsor)
- [PayPal](#paypal)
- [Infrastructure](#infrastructure)
- [Contributors Wall](#contributors-wall)
- [License](#license)
@ -52,6 +55,7 @@ You have complete control over what goes into your resume, how it looks, what co
## Languages
- Amharic (አማርኛ)
- Arabic (اَلْعَرَبِيَّةُ)
- Bengali (বাংলা)
- Bulgarian (български)

View File

@ -2,10 +2,12 @@ export type Language = {
code: string;
name: string;
localName?: string;
isRTL?: boolean;
};
export const languages: Language[] = [
{ code: 'ar', name: 'Arabic', localName: 'اَلْعَرَبِيَّةُ' },
{ code: 'am', name: 'Amharic', localName: 'አማርኛ' },
{ code: 'ar', name: 'Arabic', localName: 'اَلْعَرَبِيَّةُ', isRTL: true },
{ code: 'bg', name: 'Bulgarian', localName: 'български' },
{ code: 'bn', name: 'Bengali', localName: 'বাংলা' },
{ code: 'ca', name: 'Catalan', localName: 'Valencian' },
@ -15,10 +17,10 @@ export const languages: Language[] = [
{ code: 'el', name: 'Greek', localName: 'Ελληνικά' },
{ code: 'en', name: 'English' },
{ code: 'es', name: 'Spanish', localName: 'Español' },
{ code: 'fa', name: 'Persian', localName: 'فارسی' },
{ code: 'fa', name: 'Persian', localName: 'فارسی', isRTL: true },
{ code: 'fi', name: 'Finnish', localName: 'Suomi' },
{ code: 'fr', name: 'French', localName: 'Français' },
{ code: 'he', name: 'Hebrew', localName: 'Ivrit' },
{ code: 'he', name: 'Hebrew', localName: 'Ivrit', isRTL: true },
{ code: 'hi', name: 'Hindi', localName: 'हिन्दी' },
{ code: 'hu', name: 'Hungarian', localName: 'Magyar' },
{ code: 'id', name: 'Indonesian', localName: 'Bahasa Indonesia' },

View File

@ -4,6 +4,7 @@ const i18nConfig = {
i18n: {
defaultLocale: 'en',
locales: [
'am',
'ar',
'bg',
'bn',

View File

@ -4,6 +4,7 @@ import { Theme } from '@reactive-resume/schema';
import get from 'lodash/get';
import isEmpty from 'lodash/isEmpty';
import Markdown from '@/components/shared/Markdown';
import { useAppSelector } from '@/store/hooks';
import DataDisplay from '@/templates/shared/DataDisplay';
import { formatDateString } from '@/utils/date';
@ -23,7 +24,9 @@ const Masthead: React.FC = () => {
<div className="grid flex-1 gap-1">
<h1>{name}</h1>
<p style={{ color: theme.primary }}>{headline}</p>
<p className="opacity-75">{summary}</p>
<p className="opacity-75">
<Markdown>{summary}</Markdown>
</p>
</div>
{photo.visible && !isEmpty(photo.url) && (

View File

@ -17,6 +17,7 @@ const DateWrapper: React.FC<React.PropsWithChildren<unknown>> = ({ children }) =
dayjs.tz.setDefault('UTC');
// Locales
require('dayjs/locale/am');
require('dayjs/locale/ar');
require('dayjs/locale/bg');
require('dayjs/locale/bn');