Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: french localization #1853

Merged
merged 10 commits into from
Jun 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/FriendsMenu/FriendList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export const FriendListComponent: React.FC<FriendListProps> = props => {
/>
);
return (
<Empty title={'Nothing to see here!'} subtitle="Friend list is empty." />
<Empty title={'Nothing to see here!'} subtitle="Friends list is empty." />
);
}

Expand Down
3 changes: 2 additions & 1 deletion src/components/RightMenuBar/tabs/TrendingTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ import { Typography } from '@material-ui/core';
import { useStyles } from './Tab.style';

import { TrendingListContainer } from 'src/components/Trending';
import i18n from 'src/locale';

export const TrendingTab: React.FC = () => {
const styles = useStyles();

return (
<div className={styles.root} id="worldwide">
<div className={styles.content}>
<Typography variant="h4">Top Weekly Hashtag</Typography>
<Typography variant="h4">{i18n.t('TrendingHashtag')}</Typography>
<TrendingListContainer />
</div>
</div>
Expand Down
4 changes: 4 additions & 0 deletions src/components/Settings/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,8 @@ export const settingLanguageOptions: MenuOptions<LanguageSettingType>[] = [
id: 'ru',
title: 'русский язык',
},
{
id: 'fra',
title: 'Français',
},
];
2 changes: 1 addition & 1 deletion src/interfaces/setting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export type NotificationSettingType =
| 'tips'
| 'followers'
| 'upvotes';
export type LanguageSettingType = 'en' | 'id' | 'ru';
export type LanguageSettingType = 'en' | 'id' | 'ru' | 'fra';

export type PrivacySettings = Record<PrivacySettingType, PrivacyType>;
export type NotificationSettingItems = Record<NotificationSettingType, boolean>;
Expand Down
17 changes: 9 additions & 8 deletions src/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"EmptyFollow": {
"Text_1": "Follow Timelines to Stay Up-to-Date",
"Text_2": "Looks like you're not following any timelines yet! By following timelines, you can see all the latest updates from the people and topics that matter to you.",
"Btn": "Discover Timeline"
"Btn": "Discover Timelines"
}
},
"Preview": {
Expand Down Expand Up @@ -225,7 +225,7 @@
},
"People": {
"Title": "Friends",
"Desc": "Start making connections. Sign in now to add and manage your friend list."
"Desc": "Start making connections. Sign in now to add and manage your friends list."
}
}
},
Expand Down Expand Up @@ -304,7 +304,7 @@
"No_Account_Description": "You don't seem to have an account on {{instance_name}}. Do you wish to create a new account on {{instance_name}}?",
"No_Account_Cancel": "No, Select Others",
"No_Account_Confirm": "Sign Out",
"Switch": "Switch Instance"
"Switch": "Switch Instances"
}
},
"Profile": {
Expand Down Expand Up @@ -375,7 +375,7 @@
"Alert": {
"Success_Block": "User successfully blocked",
"Success_Req": "Friend request confirmed",
"Unfriend": "{{name}} has been removed from your friend lists",
"Unfriend": "{{name}} has been removed from your friends list",
"Copy": "Profile link copied!"
},
"Prompt": {
Expand Down Expand Up @@ -834,14 +834,14 @@
"Title": "{{appname}} - Friends",
"Container": {
"Title": "Friends",
"Tab_Panel_1": "Friend List",
"Tab_Panel_1": "Friends List",
"Tab_Panel_2": "Friend Request"
},
"List": {
"Mutual": "{{total}} mutual friends"
},
"Alert": {
"Removed": "{{name}} has been removed from your friend lists",
"Removed": "{{name}} has been removed from your friends list",
"Block": "User successfully blocked"
},
"Prompt_Wallet": {
Expand Down Expand Up @@ -870,7 +870,7 @@
},
"Empty": {
"Friend_List": {
"Title": "Friend list is empty",
"Title": "Friends list is empty",
"Subtitle": "Find or invite your friends to Myriad 😉"
},
"Friend_Request": {
Expand Down Expand Up @@ -1356,5 +1356,6 @@
"desc": "Sign in via Web 2.0",
"tooltip": "Sign-in via email lets you use many of Myriad’s features. You can get the real deal later by adding a crypto wallet address in your wallet settings. We will not use your email for commercial purposes."
}
}
},
"TrendingHashtag": "Top Weekly Hashtags"
}
Loading