From f0808a1116d648a4b8d3b1a6f275d95bc3a7e933 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 9 Dec 2019 00:24:53 -0800 Subject: Adding custom language setting. - Fixes #319 --- ui/src/components/user.tsx | 35 +++++++++++++++++++++++++++++++++++ ui/src/interfaces.ts | 2 ++ ui/src/translations/en.ts | 2 ++ ui/src/utils.ts | 39 ++++++++++++++++++++++++++++++++------- 4 files changed, 71 insertions(+), 7 deletions(-) (limited to 'ui') diff --git a/ui/src/components/user.tsx b/ui/src/components/user.tsx index 0aba995f..bf77d4b7 100644 --- a/ui/src/components/user.tsx +++ b/ui/src/components/user.tsx @@ -27,6 +27,7 @@ import { capitalizeFirstLetter, themes, setTheme, + languages, } from '../utils'; import { PostListing } from './post-listing'; import { SortSelect } from './sort-select'; @@ -94,6 +95,7 @@ export class User extends Component { theme: null, default_sort_type: null, default_listing_type: null, + lang: null, auth: null, }, userSettingsLoading: null, @@ -420,6 +422,32 @@ export class User extends Component { #
+
+
+ + +
+