From ec23de7e338158ff9dfc27ede9b1d2e906d8e56a Mon Sep 17 00:00:00 2001 From: Sylvia Ji Date: Tue, 21 Apr 2020 11:02:26 +0000 Subject: Translated using Weblate (Japanese) Currently translated at 100.0% (237 of 237 strings) Translation: Lemmy/lemmy Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ja/ Translated using Weblate (Chinese (Simplified)) Currently translated at 100.0% (237 of 237 strings) Translation: Lemmy/lemmy Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/zh_Hans/ --- ui/translations/ja.json | 6 ++++-- ui/translations/zh.json | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'ui') diff --git a/ui/translations/ja.json b/ui/translations/ja.json index 066ff589..db9197c3 100644 --- a/ui/translations/ja.json +++ b/ui/translations/ja.json @@ -144,7 +144,7 @@ "enable_nsfw": "閲覧注意を有効化", "url": "URL", "body": "本文", - "copy_suggested_title": "タイトルの提案をコピーする: {{title}}", + "copy_suggested_title": "提案されたタイトルをコピーする: {{title}}", "community": "コミュニティ", "expand_here": "拡大表示", "subscribe_to_communities": "<1>コミュニティをいくつか登録してみましょう。", @@ -233,5 +233,7 @@ "system_err_login": "システムエラーが発生しました。一度ログアウトして、再度ログインをお試しください。", "couldnt_create_private_message": "プライベートメッセージが作成されない。", "no_private_message_edit_allowed": "プライベートメッセージの編集許可がありません。", - "couldnt_update_private_message": "プライベートメッセージが更新されない。" + "couldnt_update_private_message": "プライベートメッセージが更新されない。", + "couldnt_like_comment": "コメントが「いいね」できない。", + "couldnt_like_post": "投稿が「いいね」できない。" } diff --git a/ui/translations/zh.json b/ui/translations/zh.json index d23de86a..e4b54362 100644 --- a/ui/translations/zh.json +++ b/ui/translations/zh.json @@ -156,8 +156,8 @@ "user_already_exists": "用户已存在。", "couldnt_update_user": "无法更新用户。", "system_err_login": "系统错误。请尝试注销后重新登入。", - "nsfw": "少儿不宜", - "show_nsfw": "显示少儿不宜内容", + "nsfw": "工作场所不宜", + "show_nsfw": "显示工作场所不宜内容", "theme": "主题", "from": "来自", "donate_to_lemmy": "向Lemmy捐赠", @@ -175,7 +175,7 @@ "more": "更多", "preview": "预览", "upload_image": "上传图片", - "enable_nsfw": "允许少儿不宜内容", + "enable_nsfw": "允许工作场所不宜内容", "show_avatars": "显示头像", "avatar": "头像", "formatting_help": "格式帮助", -- cgit v1.2.3 From b2a89cd21772afbec1e5eb00bf3b10720fae6b14 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 21 Apr 2020 20:43:38 -0400 Subject: Version v0.6.52 --- ui/src/version.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/src/version.ts b/ui/src/version.ts index eb0ecff3..a200f513 100644 --- a/ui/src/version.ts +++ b/ui/src/version.ts @@ -1 +1 @@ -export const version: string = 'v0.6.51'; +export const version: string = 'v0.6.52'; -- cgit v1.2.3 From c22090c602098abe29f451c6235fe8179725726a Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 22 Apr 2020 00:30:43 -0400 Subject: Version v0.6.53 --- ui/src/version.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/src/version.ts b/ui/src/version.ts index a200f513..6e3e167f 100644 --- a/ui/src/version.ts +++ b/ui/src/version.ts @@ -1 +1 @@ -export const version: string = 'v0.6.52'; +export const version: string = 'v0.6.53'; -- cgit v1.2.3 From 610cce4162c28d680819f2d45c804950313e3b96 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 26 Apr 2020 10:51:59 -0400 Subject: Hide online counts for now. #664 --- ui/src/components/main.tsx | 2 ++ ui/src/components/sidebar.tsx | 13 ++++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'ui') diff --git a/ui/src/components/main.tsx b/ui/src/components/main.tsx index 366d3be8..829af222 100644 --- a/ui/src/components/main.tsx +++ b/ui/src/components/main.tsx @@ -282,9 +282,11 @@ export class Main extends Component { )}
    + {/*
  • {i18n.t('number_online', { count: this.state.siteRes.online })}
  • + */}
  • {i18n.t('number_of_users', { count: this.state.siteRes.site.number_of_users, diff --git a/ui/src/components/sidebar.tsx b/ui/src/components/sidebar.tsx index d66266f6..fce31561 100644 --- a/ui/src/components/sidebar.tsx +++ b/ui/src/components/sidebar.tsx @@ -111,8 +111,9 @@ export class Sidebar extends Component { } > @@ -169,9 +170,11 @@ export class Sidebar extends Component { )}
      + {/*
    • {i18n.t('number_online', { count: this.props.online })}
    • + */}
    • {i18n.t('number_of_subscribers', { count: community.number_of_subscribers, @@ -215,9 +218,9 @@ export class Sidebar extends Component { ))}
    {i18n.t('create_a_post')} -- cgit v1.2.3 From f4b5c1f27b188804c6a124827ccc50218a0c5061 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 26 Apr 2020 10:56:53 -0400 Subject: Adding sponsor. --- ui/src/components/sponsors.tsx | 1 + 1 file changed, 1 insertion(+) (limited to 'ui') diff --git a/ui/src/components/sponsors.tsx b/ui/src/components/sponsors.tsx index cdd7bdad..51ef47fa 100644 --- a/ui/src/components/sponsors.tsx +++ b/ui/src/components/sponsors.tsx @@ -5,6 +5,7 @@ import { T } from 'inferno-i18next'; import { repoUrl } from '../utils'; let general = [ + 'Serge Tarkovsky', 'alexx henry', 'Nathan J. Goode', 'Andre Vallestero', -- cgit v1.2.3 From 92e4edf9b7af01d43391500f69ac95a619c4d2f6 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 26 Apr 2020 10:57:27 -0400 Subject: Version v0.6.54 --- ui/src/version.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/src/version.ts b/ui/src/version.ts index 6e3e167f..90281ec4 100644 --- a/ui/src/version.ts +++ b/ui/src/version.ts @@ -1 +1 @@ -export const version: string = 'v0.6.53'; +export const version: string = 'v0.6.54'; -- cgit v1.2.3 From 82941001e8e8593b6d487759c5164f1344812c0e Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 26 Apr 2020 19:09:47 -0400 Subject: Fixing sponsor issue. --- ui/src/components/sponsors.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/src/components/sponsors.tsx b/ui/src/components/sponsors.tsx index 51ef47fa..f4dd8313 100644 --- a/ui/src/components/sponsors.tsx +++ b/ui/src/components/sponsors.tsx @@ -5,7 +5,7 @@ import { T } from 'inferno-i18next'; import { repoUrl } from '../utils'; let general = [ - 'Serge Tarkovsky', + 'Serge Tarkovski', 'alexx henry', 'Nathan J. Goode', 'Andre Vallestero', -- cgit v1.2.3 From 72433b37c4a2390e766b69f7d059dc95469aa18a Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 27 Apr 2020 08:55:31 -0400 Subject: Adding a sponsor. --- ui/src/components/sponsors.tsx | 1 + 1 file changed, 1 insertion(+) (limited to 'ui') diff --git a/ui/src/components/sponsors.tsx b/ui/src/components/sponsors.tsx index f4dd8313..b0b7e5f6 100644 --- a/ui/src/components/sponsors.tsx +++ b/ui/src/components/sponsors.tsx @@ -5,6 +5,7 @@ import { T } from 'inferno-i18next'; import { repoUrl } from '../utils'; let general = [ + 'Forrest Weghorst', 'Serge Tarkovski', 'alexx henry', 'Nathan J. Goode', -- cgit v1.2.3 From 66134823bffc55cefdb5d14857faa7956a165237 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 27 Apr 2020 09:07:31 -0400 Subject: Version v0.6.55 --- ui/src/version.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/src/version.ts b/ui/src/version.ts index 90281ec4..273c97cd 100644 --- a/ui/src/version.ts +++ b/ui/src/version.ts @@ -1 +1 @@ -export const version: string = 'v0.6.54'; +export const version: string = 'v0.6.55'; -- cgit v1.2.3 From 9b93d4c098da53cc24ca0b4df293122ef251f7d3 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 29 Apr 2020 17:52:18 -0400 Subject: Better private-message form. Fixes #652 --- ui/src/components/private-message-form.tsx | 60 +++++++++++++++--------------- 1 file changed, 30 insertions(+), 30 deletions(-) (limited to 'ui') diff --git a/ui/src/components/private-message-form.tsx b/ui/src/components/private-message-form.tsx index 6b607654..7667f5a1 100644 --- a/ui/src/components/private-message-form.tsx +++ b/ui/src/components/private-message-form.tsx @@ -160,38 +160,12 @@ export class PrivateMessageForm extends Component< )} /> )} - - {this.state.showDisclaimer && (
    -
    +
    )}
    -
    +
    {this.state.privateMessageForm.content && ( )} +
    -- cgit v1.2.3 From 43592c32d9c4190ee7ef26838f8f33c555a72997 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 1 May 2020 21:51:04 -0400 Subject: Adding hindi template. --- ui/src/i18next.ts | 4 ++++ ui/src/utils.ts | 14 +++++++++----- ui/translations/hi.json | 3 +++ 3 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 ui/translations/hi.json (limited to 'ui') diff --git a/ui/src/i18next.ts b/ui/src/i18next.ts index 85d06f91..2cd29000 100644 --- a/ui/src/i18next.ts +++ b/ui/src/i18next.ts @@ -13,14 +13,18 @@ import { it } from './translations/it'; import { fi } from './translations/fi'; import { ca } from './translations/ca'; import { fa } from './translations/fa'; +import { hi } from './translations/hi'; import { pt_BR } from './translations/pt_BR'; import { ja } from './translations/ja'; +import { ka } from './translations/ka'; // https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66 const resources = { en, eo, es, + ka, + hi, de, zh, fr, diff --git a/ui/src/utils.ts b/ui/src/utils.ts index 21a7fef8..2256a0c1 100644 --- a/ui/src/utils.ts +++ b/ui/src/utils.ts @@ -13,6 +13,7 @@ import 'moment/locale/fa'; import 'moment/locale/pt-br'; import 'moment/locale/ja'; import 'moment/locale/ka'; +import 'moment/locale/hi'; import { UserOperation, @@ -62,6 +63,7 @@ export const languages = [ { code: 'es', name: 'Español' }, { code: 'de', name: 'Deutsch' }, { code: 'ka', name: 'ქართული ენა' }, + { code: 'hi', name: 'मानक हिन्दी' }, { code: 'fa', name: 'فارسی' }, { code: 'ja', name: '日本語' }, { code: 'pt_BR', name: 'Português Brasileiro' }, @@ -118,11 +120,11 @@ export const md = new markdown_it({ typographer: true, }) .use(markdown_it_container, 'spoiler', { - validate: function(params: any) { + validate: function (params: any) { return params.trim().match(/^spoiler\s+(.*)$/); }, - render: function(tokens: any, idx: any) { + render: function (tokens: any, idx: any) { var m = tokens[idx].info.trim().match(/^spoiler\s+(.*)$/); if (tokens[idx].nesting === 1) { @@ -138,7 +140,7 @@ export const md = new markdown_it({ defs: objectFlip(emojiShortName), }); -md.renderer.rules.emoji = function(token, idx) { +md.renderer.rules.emoji = function (token, idx) { return twemoji.parse(token[idx].content); }; @@ -284,7 +286,7 @@ export function debounce( let timeout: any; // Calling debounce returns a new anonymous function - return function() { + return function () { // reference the context and args for the setTimeout function var context = this, args = arguments; @@ -300,7 +302,7 @@ export function debounce( clearTimeout(timeout); // Set the new timeout - timeout = setTimeout(function() { + timeout = setTimeout(function () { // Inside the timeout function, clear the timeout variable // which will let the next execution run when in 'immediate' mode timeout = null; @@ -366,6 +368,8 @@ export function getMomentLanguage(): string { lang = 'ja'; } else if (lang.startsWith('ka')) { lang = 'ka'; + } else if (lang.startsWith('hi')) { + lang = 'hi'; } else { lang = 'en'; } diff --git a/ui/translations/hi.json b/ui/translations/hi.json new file mode 100644 index 00000000..0db3279e --- /dev/null +++ b/ui/translations/hi.json @@ -0,0 +1,3 @@ +{ + +} -- cgit v1.2.3 From ec087ce28aab5211828f5e212dce9a581922f450 Mon Sep 17 00:00:00 2001 From: Sylvia Ji Date: Sat, 2 May 2020 01:52:15 +0000 Subject: Translated using Weblate (Chinese (Simplified)) Currently translated at 100.0% (237 of 237 strings) Translation: Lemmy/lemmy Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/zh_Hans/ Translated using Weblate (Chinese (Simplified)) Currently translated at 100.0% (237 of 237 strings) Translation: Lemmy/lemmy Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/zh_Hans/ --- ui/translations/zh.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui') diff --git a/ui/translations/zh.json b/ui/translations/zh.json index e4b54362..afe754ba 100644 --- a/ui/translations/zh.json +++ b/ui/translations/zh.json @@ -122,7 +122,7 @@ "code": "代码", "joined": "已加入", "powered_by": "保留所有权利", - "landing_0": "Lemmy is a <1>link aggregator / reddit alternative, intended to work in the <2>fediverse.<3>It's self-hostable, has live-updating comment threads, and is tiny (<4>~80kB). Federation into the ActivityPub network is on the roadmap. <5>This is a <6>very early beta version, and a lot of features are currently broken or missing. <7>Suggest new features or report bugs <8>here.<9>Made with <10>Rust, <11>Actix, <12>Inferno, <13>Typescript.", + "landing": "Lemmy是一个 <1>链接聚合器 / reddit的替代选择,为在<2>fediverse上使用而设计。<3>它支持自托管, 提供实时更新的讨论串, 并且十分轻量 (<4>约80kB)。对ActivityPub网络的联邦整合已经在规划之中。<5>这是一个<6>非常早期的beta版本,许多功能还不能使用或还未开发完成。 <7>请到 <8>这里提出新功能或报告bug。<9>由<10>Rust、 <11>Actix、<12>Inferno、<13>Typescript写成。", "not_logged_in": "未登录.", "community_ban": "你已被此社群拉黑。", "site_ban": "你已被本站拉黑", @@ -213,7 +213,7 @@ "private_message_disclaimer": "警告:Lemmy的私信功能并不安全。想要进行安全的信息传递,请在 <1>Riot.im上创建账号。", "send_notifications_to_email": "向邮箱发送通知", "language": "语言", - "browser_default": "默认浏览器", + "browser_default": "浏览器默认语言", "downvotes_disabled": "点踩功能已禁用", "enable_downvotes": "启用点踩功能", "upvote": "点赞", -- cgit v1.2.3 From 915fe79d7a7cc536c39a1f88b940fefc54c00980 Mon Sep 17 00:00:00 2001 From: dessalines Date: Sat, 2 May 2020 01:52:15 +0000 Subject: Added translation using Weblate (Hindi) --- ui/translations/hi.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 ui/translations/hi.json (limited to 'ui') diff --git a/ui/translations/hi.json b/ui/translations/hi.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/ui/translations/hi.json @@ -0,0 +1 @@ +{} -- cgit v1.2.3 From 0d08cf36f8d33d9f6b27990f10ffeb66a50e3636 Mon Sep 17 00:00:00 2001 From: Nishant Aswani Date: Sun, 3 May 2020 17:03:25 +0000 Subject: Translated using Weblate (Hindi) Currently translated at 16.8% (41 of 243 strings) Translation: Lemmy/lemmy Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/hi/ Translated using Weblate (Hindi) Currently translated at 4.5% (11 of 243 strings) Translation: Lemmy/lemmy Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/hi/ --- ui/translations/hi.json | 47 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/translations/hi.json b/ui/translations/hi.json index 0967ef42..912a7d43 100644 --- a/ui/translations/hi.json +++ b/ui/translations/hi.json @@ -1 +1,46 @@ -{} +{ + "create_a_post": "पोस्ट बनाएँ", + "create_post": "पोस्ट बनाएँ", + "posts": "पोस्ट", + "unlock": "ताला खोलें", + "avatar": "अवतार", + "upload_image": "फ़ोटो अपलोड करें", + "comments": "टिप्पणी (कमेंट )", + "remove_comment": "टिप्पणी हटाएँ (कमेंट हटाएँ)", + "upload_avatar": "अवतार अपलोड करें", + "post": "पोस्ट", + "remove_post": "पोस्ट हटाएँ", + "number_of_posts": "{{count}} पोस्ट", + "number_of_posts_plural": "{{count}} पोस्ट्स", + "cross_posts": "यह लिंक अन्य स्थान पर भी पोस्ट किया गया हैं :", + "related_posts": "यह पोस्ट्स संबंधित हो सकते हैं |", + "number_of_comments": "{{ count }} टिप्पणी (कमेंट )", + "number_of_comments_plural": "{{ count }} टिप्पणियाँ (कोम्मेंट्स )", + "communities": "सामुदायिक", + "users": "उपयोगकर्ता", + "create_a_community": "समुदाय बनाएँ", + "create_community": "समुदाय बनाएँ", + "remove_community": "समुदाय हटाएँ", + "list_of_communities": "समुदायों की सूची", + "create_private_message": "निजी संदेश बनाएँ", + "send_secure_message": "सुरक्षित संदेश भेजें", + "send_message": "संदेश भेजें", + "message": "संदेश", + "edit": "संपादित करें ( एडिट करें )", + "reply": "जवाब दें", + "more": "और भी", + "cancel": "रद्द करें", + "preview": "पूर्वावलोकन करें", + "show_avatars": "अवतार दिखाएँ", + "show_context": "संदर्भ दिखाएँ", + "community": "समुदाय", + "number_of_communities": "{{count}} समुदाय", + "number_of_communities_plural": "{{count}} समुदाय", + "community_reqs": "छोटे अक्षर, अंडरस्कोर, और कोई रिक्त स्थान नहीं |", + "forgot_password": "पासवर्ड भूल गए", + "no_posts": "कोई पोस्ट नहीं |", + "community_already_exists": "यह समुदाय पहले स मौजूद है |", + "couldnt_create_comment": "टिप्पणी (कमेंट) नहीं बना पाईं |", + "couldnt_find_community": "समुदायों नहीं ढूंढ़ पाएं |", + "couldnt_find_post": "पोस्ट नहीं ढूंढ़ पाएं |" +} -- cgit v1.2.3 From 88e1251d6b26411e4253027510e59a06caa72bfe Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 3 May 2020 17:27:25 -0400 Subject: Version v0.6.56 --- ui/src/version.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/src/version.ts b/ui/src/version.ts index 273c97cd..0d99a200 100644 --- a/ui/src/version.ts +++ b/ui/src/version.ts @@ -1 +1 @@ -export const version: string = 'v0.6.55'; +export const version: string = 'v0.6.56'; -- cgit v1.2.3 From bc8ad12b04a501bf670cc541b20282a791a3aac4 Mon Sep 17 00:00:00 2001 From: Andre Vallestero Date: Thu, 7 May 2020 21:26:08 -0400 Subject: Added externally hosted UI thumbnail support --- ui/src/components/post-listing.tsx | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) (limited to 'ui') diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx index d0efa043..36a1e282 100644 --- a/ui/src/components/post-listing.tsx +++ b/ui/src/components/post-listing.tsx @@ -150,9 +150,9 @@ export class PostListing extends Component { let post = this.props.post; return ( ); @@ -163,6 +163,8 @@ export class PostListing extends Component { if (isImage(post.url)) { if (post.url.includes('pictshare')) { return pictshareImage(post.url, thumbnail); + } else if (post.thumbnail_url) { + return pictshareImage(post.thumbnail_url, thumbnail); } else { return post.url; } @@ -542,8 +544,9 @@ export class PostListing extends Component { } > @@ -586,8 +589,9 @@ export class PostListing extends Component { } > @@ -618,8 +622,9 @@ export class PostListing extends Component { data-tippy-content={i18n.t('view_source')} > @@ -639,8 +644,9 @@ export class PostListing extends Component { } > @@ -657,8 +663,9 @@ export class PostListing extends Component { } > -- cgit v1.2.3 From ffcbb7613e96b96f1a15963816106ba6c4c42943 Mon Sep 17 00:00:00 2001 From: Andre Vallestero Date: Thu, 7 May 2020 21:30:23 -0400 Subject: Added additional check for pictshare thumbnail --- ui/src/components/post-listing.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx index 36a1e282..c1480f79 100644 --- a/ui/src/components/post-listing.tsx +++ b/ui/src/components/post-listing.tsx @@ -163,7 +163,10 @@ export class PostListing extends Component { if (isImage(post.url)) { if (post.url.includes('pictshare')) { return pictshareImage(post.url, thumbnail); - } else if (post.thumbnail_url) { + } else if ( + post.thumbnail_url && + post.thumbnail_url.includes('pictshare') + ) { return pictshareImage(post.thumbnail_url, thumbnail); } else { return post.url; -- cgit v1.2.3 From 2fab9b5b9b0cea1e1bfa2ef6ca91b19fc153a15f Mon Sep 17 00:00:00 2001 From: Sylvia Ji Date: Fri, 8 May 2020 15:35:19 +0000 Subject: Translated using Weblate (Chinese (Simplified)) Currently translated at 100.0% (237 of 237 strings) Translation: Lemmy/lemmy Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/zh_Hans/ --- ui/translations/zh.json | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'ui') diff --git a/ui/translations/zh.json b/ui/translations/zh.json index afe754ba..1406287b 100644 --- a/ui/translations/zh.json +++ b/ui/translations/zh.json @@ -100,9 +100,9 @@ "url": "网址", "body": "内容", "copy_suggested_title": "复制建议的标题: {{title}}", - "community": "节点", + "community": "社群", "expand_here": "展开", - "subscribe_to_communities": "订阅一些 <1>节点.", + "subscribe_to_communities": "订阅一些 <1>社群.", "chat": "聊天", "no_results": "没有结果.", "setup": "设置", @@ -126,19 +126,19 @@ "not_logged_in": "未登录.", "community_ban": "你已被此社群拉黑。", "site_ban": "你已被本站拉黑", - "couldnt_create_comment": "不能创建评论.", + "couldnt_create_comment": "无法创建评论。", "couldnt_like_comment": "无法点赞评论。", - "couldnt_update_comment": "不能更新评论.", - "couldnt_save_comment": "不能保存评论.", + "couldnt_update_comment": "无法更新评论。", + "couldnt_save_comment": "无法保存评论。", "no_comment_edit_allowed": "没有编辑评论的权限。", "no_post_edit_allowed": "没有编辑帖子的权限。", - "no_community_edit_allowed": "没有编辑节点的权限。", - "couldnt_find_community": "无法找到节点。", - "couldnt_update_community": "无法更新节点。", - "community_already_exists": "节点已存在。", - "community_moderator_already_exists": "节点监管人已存在。", - "community_follower_already_exists": "节点追随者已存在。", - "community_user_already_banned": "节点用户已禁止。", + "no_community_edit_allowed": "没有编辑社群的权限。", + "couldnt_find_community": "无法找到社群。", + "couldnt_update_community": "无法更新社群。", + "community_already_exists": "社群已存在。", + "community_moderator_already_exists": "社群监管人已存在。", + "community_follower_already_exists": "社群关注者已存在。", + "community_user_already_banned": "社群用户已被禁止。", "couldnt_create_post": "无法创建帖子。", "couldnt_like_post": "无法点赞帖子。", "couldnt_find_post": "无法找到帖子。", @@ -224,7 +224,7 @@ "registration_closed": "注册功能已关闭", "recent_comments": "最新评论", "by": "来自", - "transfer_community": "节点转让", + "transfer_community": "转让社群", "transfer_site": "站点转让", "post_title_too_long": "帖子标题过长。", "couldnt_get_comments": "无法获取评论。", -- cgit v1.2.3 From a2674437773fa8cbabc6e763c49e1d5f65aa66ec Mon Sep 17 00:00:00 2001 From: Nishant Aswani Date: Fri, 8 May 2020 15:35:19 +0000 Subject: Translated using Weblate (Hindi) Currently translated at 25.1% (61 of 243 strings) Translation: Lemmy/lemmy Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/hi/ --- ui/translations/hi.json | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/translations/hi.json b/ui/translations/hi.json index 912a7d43..84d5007a 100644 --- a/ui/translations/hi.json +++ b/ui/translations/hi.json @@ -42,5 +42,25 @@ "community_already_exists": "यह समुदाय पहले स मौजूद है |", "couldnt_create_comment": "टिप्पणी (कमेंट) नहीं बना पाईं |", "couldnt_find_community": "समुदायों नहीं ढूंढ़ पाएं |", - "couldnt_find_post": "पोस्ट नहीं ढूंढ़ पाएं |" + "couldnt_find_post": "पोस्ट नहीं ढूंढ़ पाएं |", + "trending_communities": "अभी प्रचलित <1>समुदाय", + "formatting_help": "स्वरूपण सहायता", + "view_source": "स्रोत देखें", + "lock": "बंद करें", + "link": "लिंक", + "mods": "मध्यस्थों", + "settings": "समायोजन (सेटिंग्स)", + "site_config": "साइड कॉन्फ़िगरेशन", + "appoint_as_mod": "मध्यथ के रूप में नियुक्त करें", + "admin": "प्रशासक", + "remove": "हटाएँ", + "removed": "हटाए गए", + "locked": "बंद", + "reason": "कारण", + "mod": "मध्यस्थ", + "admin_settings": "प्रशासक समायोजन (सेटिंग्स)", + "remove_as_mod": "मध्यथ के स्थान से हटाएँ", + "admins": "प्रशासकों", + "remove_as_admin": "प्रशासक के स्थान से हटाएँ", + "appoint_as_admin": "प्रशासक के रूप में नियुक्त करें" } -- cgit v1.2.3 From c836fa691295604ebb464fda8d47124f907a2262 Mon Sep 17 00:00:00 2001 From: 6r6 Date: Fri, 8 May 2020 15:35:19 +0000 Subject: Translated using Weblate (Chinese (Simplified)) Currently translated at 100.0% (237 of 237 strings) Translation: Lemmy/lemmy Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/zh_Hans/ --- ui/translations/zh.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ui') diff --git a/ui/translations/zh.json b/ui/translations/zh.json index 1406287b..872d0b51 100644 --- a/ui/translations/zh.json +++ b/ui/translations/zh.json @@ -1,5 +1,5 @@ { - "post": "帖子", + "post": "回帖", "remove_post": "移除帖子", "no_posts": "没有帖子。", "create_a_post": "创建新帖子", @@ -159,11 +159,11 @@ "nsfw": "工作场所不宜", "show_nsfw": "显示工作场所不宜内容", "theme": "主题", - "from": "来自", + "from": "由", "donate_to_lemmy": "向Lemmy捐赠", "donate": "捐赠", "monero": "门罗币", - "to": "致", + "to": "发布到", "are_you_sure": "你确定吗?", "yes": "是", "no": "否", @@ -223,7 +223,7 @@ "open_registration": "开放注册", "registration_closed": "注册功能已关闭", "recent_comments": "最新评论", - "by": "来自", + "by": "由", "transfer_community": "转让社群", "transfer_site": "站点转让", "post_title_too_long": "帖子标题过长。", -- cgit v1.2.3 From f3fa6c1fc0828aeb99f782d9de19afe867671dbb Mon Sep 17 00:00:00 2001 From: Nika Tskhakaia Date: Fri, 8 May 2020 15:35:19 +0000 Subject: Translated using Weblate (Georgian) Currently translated at 90.9% (221 of 243 strings) Translation: Lemmy/lemmy Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ka/ --- ui/translations/ka.json | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/translations/ka.json b/ui/translations/ka.json index ebda8982..af967263 100644 --- a/ui/translations/ka.json +++ b/ui/translations/ka.json @@ -221,5 +221,27 @@ "couldnt_like_post": "პოსტის მოწონება ვერ მოხერხდა.", "community_moderator_already_exists": "ამ თემის მოდერატორი უკვე არსებობს.", "couldnt_create_post": "პოსტი ვერ შეიქმნა.", - "post_title_too_long": "პოსტის სათაური ძალიან გრძელია." + "post_title_too_long": "პოსტის სათაური ძალიან გრძელია.", + "admin_settings": "ადმინი პარამეტრები", + "site_config": "საიტის კონფიგურაცია", + "banned_users": "გაშავებული მომხმარებლები", + "support_on_open_collective": "Support on OpenCollective", + "site_saved": "Site Saved.", + "couldnt_find_post": "პოსტი ვერ მოიძებნა.", + "couldnt_get_posts": "პოსტები არ არის.", + "couldnt_update_post": "პოსტი ვერ განახლდა", + "couldnt_save_post": "პოსტის დასეივება ვერ მოხერხდა.", + "monero": "Monero", + "no_slurs": "No slurs.", + "not_an_admin": "ადმინი არ არის", + "site_already_exists": "Site already exists.", + "couldnt_update_site": "Couldn't update site.", + "couldnt_find_that_username_or_email": "სახელი ან ელ-პოსტა ვერ მოიძებნა.", + "password_incorrect": "პაროლი არასწორია .", + "passwords_dont_match": "პაროლები იგივი არ არის.", + "admin_already_created": "ადმინი უკვე არსებობს.", + "user_already_exists": "მომხმარებელი უკვე არსებობს.", + "email_already_exists": "ელ-პოსტა უკვე არსებობს.", + "couldnt_update_user": "მომხმარებლის განახლება ვერ მოხერხდა.", + "system_err_login": "ერორი. თავიდან შემოსვლა ცადეთ." } -- cgit v1.2.3 From 2db6f35b7c961c50f2320dea6ea71eeecf60f824 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 8 May 2020 13:36:52 -0400 Subject: Removing button wrapper for comment context. Fixes #702 --- ui/src/components/comment-node.tsx | 48 ++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 23 deletions(-) (limited to 'ui') diff --git a/ui/src/components/comment-node.tsx b/ui/src/components/comment-node.tsx index ba4301e1..4a063307 100644 --- a/ui/src/components/comment-node.tsx +++ b/ui/src/components/comment-node.tsx @@ -142,9 +142,11 @@ export class CommentNode extends Component { } >
    @@ -249,8 +251,9 @@ export class CommentNode extends Component { this.loadingIcon ) : ( @@ -302,8 +305,9 @@ export class CommentNode extends Component { this.loadingIcon ) : ( @@ -350,8 +354,9 @@ export class CommentNode extends Component { data-tippy-content={i18n.t('view_source')} > @@ -380,8 +385,9 @@ export class CommentNode extends Component { } > @@ -700,19 +706,15 @@ export class CommentNode extends Component { get linkBtn() { let node = this.props.node; return ( - + + + + + ); } -- cgit v1.2.3 From e6717c86acd3156c04355a0797dc0c802d87ea6b Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 8 May 2020 14:02:06 -0400 Subject: Adding support for webp images on the front end. Fixes #703 --- ui/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/src/utils.ts b/ui/src/utils.ts index 2256a0c1..f18d996e 100644 --- a/ui/src/utils.ts +++ b/ui/src/utils.ts @@ -210,7 +210,7 @@ export function isMod(modIds: Array, creator_id: number): boolean { } const imageRegex = new RegExp( - /(http)?s?:?(\/\/[^"']*\.(?:jpg|jpeg|gif|png|svg))/ + /(http)?s?:?(\/\/[^"']*\.(?:jpg|jpeg|gif|png|svg|webp))/ ); const videoRegex = new RegExp(`(http)?s?:?(\/\/[^"']*\.(?:mp4))`); -- cgit v1.2.3 From b83aae0b57f79f89c34d7dc9c3433fec64255e18 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 8 May 2020 14:08:35 -0400 Subject: Version v0.6.57 --- ui/src/version.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/src/version.ts b/ui/src/version.ts index 0d99a200..91711bb0 100644 --- a/ui/src/version.ts +++ b/ui/src/version.ts @@ -1 +1 @@ -export const version: string = 'v0.6.56'; +export const version: string = 'v0.6.57'; -- cgit v1.2.3 From ade1d354633be545b20e131beedf9f8ebb0485a7 Mon Sep 17 00:00:00 2001 From: Eugeny Date: Sun, 10 May 2020 14:29:49 +0000 Subject: Translated using Weblate (Russian) Currently translated at 96.7% (235 of 243 strings) Translation: Lemmy/lemmy Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ru/ Translated using Weblate (Russian) Currently translated at 95.4% (232 of 243 strings) Translation: Lemmy/lemmy Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ru/ --- ui/translations/ru.json | 43 ++++++++++++++++++++++++++++++++++++++----- 1 file changed, 38 insertions(+), 5 deletions(-) (limited to 'ui') diff --git a/ui/translations/ru.json b/ui/translations/ru.json index 5de4a829..8935763f 100644 --- a/ui/translations/ru.json +++ b/ui/translations/ru.json @@ -58,9 +58,15 @@ "create": "создать", "username": "Имя пользователя", "email_or_username": "Электронная почта или имя пользователя", - "number_of_users": "{{count}} пользователей", - "number_of_subscribers": "{{count}} подписчиков", - "number_of_points": "{{count}} баллов", + "number_of_users_0": "{{count}} пользователь", + "number_of_users_1": "{{count}} пользователя", + "number_of_users_2": "{{count}} пользователей", + "number_of_subscribers_0": "{{count}} подписчик", + "number_of_subscribers_1": "{{count}} подписчика", + "number_of_subscribers_2": "{{count}} подписчиков", + "number_of_points_0": "{{count}} балл", + "number_of_points_1": "{{count}} балла", + "number_of_points_2": "{{count}} баллов", "name": "Имя", "title": "Название", "category": "Категория", @@ -170,7 +176,7 @@ "avatar": "Аватар", "show_avatars": "Показать Аватары", "formatting_help": "Помощь в верстке текста", - "sticky": "", + "sticky": "приклеить", "stickied": "закрепленный пост", "delete_account": "Удалить аккаунт", "delete_account_confirm": "Предупреждение: это действие полностью уничтожит все данные вашего аккаунта. Введите свой пароль для подтверждения.", @@ -214,5 +220,32 @@ "number_of_communities_2": "{{count}} сообществ", "creator": "автор", "old": "Старое", - "to": "в" + "to": "в", + "admin_settings": "Настройки админа", + "banned_users": "Забаненные Пользователи", + "support_on_open_collective": "Поддержка на OpenCollective", + "site_saved": "Сайт Сохранен.", + "enable_nsfw": "Включить NSFW", + "donate": "Пожертвование", + "unsticky": "отклеить", + "site_config": "Конфигурация сайта", + "banned": "забаненный", + "password_change": "Смена пароля", + "no_email_setup": "Этот сервер неправильно настроил электронную почту.", + "matrix_user_id": "Матрица пользователя", + "are_you_sure": "вы уверены?", + "archive_link": "архивировать ссылку", + "logged_in": "Войти в систему.", + "couldnt_get_comments": "Не удалось получить комментарии.", + "from": "от", + "transfer_site": "трансфер сайт", + "show_context": "Показать контекст", + "email_already_exists": "E-mail уже существует.", + "couldnt_create_private_message": "Не удалось создать личное сообщение.", + "no_private_message_edit_allowed": "Не разрешается редактировать личное сообщение.", + "couldnt_update_private_message": "Не удалось обновить личное сообщение.", + "block_leaving": "Вы уверены, что хотите покинуть?", + "number_online_0": "{{count}} Пользователь онлайн", + "number_online_1": "{{count}} Пользователя онлайн", + "number_online_2": "{{count}} Пользователей онлайн" } -- cgit v1.2.3 From c76b91d595f72cec6bff26c9a4defab5b428aaa7 Mon Sep 17 00:00:00 2001 From: Richie Zhang Date: Sun, 10 May 2020 14:29:49 +0000 Subject: Translated using Weblate (French) Currently translated at 97.9% (238 of 243 strings) Translation: Lemmy/lemmy Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/fr/ Translated using Weblate (German) Currently translated at 98.3% (239 of 243 strings) Translation: Lemmy/lemmy Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/de/ --- ui/translations/de.json | 11 ++++++++++- ui/translations/fr.json | 32 ++++++++++++++++++++++++-------- 2 files changed, 34 insertions(+), 9 deletions(-) (limited to 'ui') diff --git a/ui/translations/de.json b/ui/translations/de.json index 46719c18..bb85dd1e 100644 --- a/ui/translations/de.json +++ b/ui/translations/de.json @@ -235,5 +235,14 @@ "couldnt_update_private_message": "Konnte Privatnachricht nicht aktualisieren.", "time": "Zeit", "action": "Aktion", - "more": "mehr" + "more": "mehr", + "admin_settings": "Admin-Einstellungen", + "sorting_help": "Sortierhilfe", + "banned_users": "Verbotene Benutzer", + "show_context": "Kontext anzeigen", + "block_leaving": "Sind Sie sicher, dass Sie gehen wollen?", + "site_config": "Website-Konfiguration", + "support_on_open_collective": "Unterstützung bei OpenCollective", + "site_saved": "Site Gespeichert.", + "emoji_picker": "Emoji-Wähler" } diff --git a/ui/translations/fr.json b/ui/translations/fr.json index 96b8c3d1..f91e6b14 100644 --- a/ui/translations/fr.json +++ b/ui/translations/fr.json @@ -4,14 +4,16 @@ "no_posts": "Pas de publications.", "create_a_post": "Créer une publication", "create_post": "Créer la publication", - "number_of_posts": "{{count}} Publications", + "number_of_posts": "{{count}} Publication", + "number_of_posts_plural": "{{count}} Publications", "posts": "Publications", "related_posts": "Ces sujets peuvent être corrélés", "cross_posts": "Ce sujet a également été posté sur :", "cross_post": "publication croisée", "cross_posted_to": "publication croisée à : ", "comments": "Commentaires", - "number_of_comments": "{{count}} Commentaires", + "number_of_comments": "{{count}} Commentaire", + "number_of_comments_plural": "{{count}} Commentaires", "remove_comment": "Supprimer le commentaire", "communities": "Communautés", "users": "Utilisateurs", @@ -21,7 +23,8 @@ "subscribed_to_communities": "Abonné à ces <1>communautés", "trending_communities": "<1>Communautés appréciées", "list_of_communities": "Liste des communautés", - "number_of_communities": "{{count}} communautés", + "number_of_communities": "{{count}} Communauté", + "number_of_communities_plural": "{{count}} Communautés", "community_reqs": "en minuscule, sans espace et avec tiret du bas.", "create_private_message": "Créer un message privé", "send_secure_message": "Envoyer le message sécurisé", @@ -77,10 +80,14 @@ "creator": "createur", "username": "Nom d'utilisateur", "email_or_username": "Email ou Nom d'utilisateur", - "number_of_users": "{{count}} Utilisateurs", - "number_of_subscribers": "{{count}} Abonnés", - "number_of_points": "{{count}} Points", - "number_online": "{{count}} Utilisateurs en ligne", + "number_of_users": "{{count}} Utilisateur", + "number_of_users_plural": "{{count}} Utilisateurs", + "number_of_subscribers": "{{count}} Abonné", + "number_of_subscribers_plural": "{{count}} Abonnés", + "number_of_points": "{{count}} Point", + "number_of_points_plural": "{{count}} Points", + "number_online": "{{count}} Utilisateur en ligne", + "number_online_plural": "{{count}} Utilisateurs en ligne", "name": "Nom", "title": "Titre", "category": "Catégorie", @@ -228,5 +235,14 @@ "couldnt_update_private_message": "Impossible de modifier un message privé.", "time": "Temps", "action": "Action", - "more": "plus" + "more": "plus", + "admin_settings": "Paramètres administratifs", + "site_config": "Configuration du site", + "banned_users": "Utilisateurs interdits", + "site_saved": "Site sauvegardé.", + "support_on_open_collective": "Soutien à OpenCollective", + "sorting_help": "aide au tri", + "upvote": "Aime", + "show_context": "Afficher le contexte", + "block_leaving": "Vous êtes sûr de vouloir partir ?" } -- cgit v1.2.3 From 9155469e8aab1bd2963f09332c0a6075808a09ee Mon Sep 17 00:00:00 2001 From: Andre Vallestero Date: Mon, 11 May 2020 11:29:35 -0400 Subject: Removed redundant erroneous check --- ui/src/components/post-listing.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'ui') diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx index c1480f79..36a1e282 100644 --- a/ui/src/components/post-listing.tsx +++ b/ui/src/components/post-listing.tsx @@ -163,10 +163,7 @@ export class PostListing extends Component { if (isImage(post.url)) { if (post.url.includes('pictshare')) { return pictshareImage(post.url, thumbnail); - } else if ( - post.thumbnail_url && - post.thumbnail_url.includes('pictshare') - ) { + } else if (post.thumbnail_url) { return pictshareImage(post.thumbnail_url, thumbnail); } else { return post.url; -- cgit v1.2.3 From cb8851096405639395dc53865498df4bddf5bf7b Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 11 May 2020 14:04:23 -0400 Subject: Version v0.6.58 --- ui/src/version.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/src/version.ts b/ui/src/version.ts index 91711bb0..eb652a1e 100644 --- a/ui/src/version.ts +++ b/ui/src/version.ts @@ -1 +1 @@ -export const version: string = 'v0.6.57'; +export const version: string = 'v0.6.58'; -- cgit v1.2.3 From c22310bdaf0d289e83a99aa34e1c015c7078b10e Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 11 May 2020 19:08:28 -0400 Subject: Version v0.6.59 --- ui/src/version.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/src/version.ts b/ui/src/version.ts index eb652a1e..4106ca0d 100644 --- a/ui/src/version.ts +++ b/ui/src/version.ts @@ -1 +1 @@ -export const version: string = 'v0.6.58'; +export const version: string = 'v0.6.59'; -- cgit v1.2.3 From 913383ca759c10004430c79f95985d6bc2fe1866 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 12 May 2020 14:36:22 -0400 Subject: Removing autocomplete for register and user settings password fields. - Fixes #708 --- ui/src/components/login.tsx | 2 ++ ui/src/components/user.tsx | 10 +++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'ui') diff --git a/ui/src/components/login.tsx b/ui/src/components/login.tsx index 581c4995..84014f68 100644 --- a/ui/src/components/login.tsx +++ b/ui/src/components/login.tsx @@ -187,6 +187,7 @@ export class Login extends Component { type="password" id="register-password" value={this.state.registerForm.password} + autoComplete="new-password" onInput={linkEvent(this, this.handleRegisterPasswordChange)} class="form-control" required @@ -206,6 +207,7 @@ export class Login extends Component { type="password" id="register-verify-password" value={this.state.registerForm.password_verify} + autoComplete="new-password" onInput={linkEvent(this, this.handleRegisterPasswordVerifyChange)} class="form-control" required diff --git a/ui/src/components/user.tsx b/ui/src/components/user.tsx index bf67a5fd..eded9998 100644 --- a/ui/src/components/user.tsx +++ b/ui/src/components/user.tsx @@ -81,7 +81,6 @@ export class User extends Component { user: { id: null, name: null, - fedi_name: null, published: null, number_of_posts: null, post_score: null, @@ -455,8 +454,9 @@ export class User extends Component { ) : ( <> @@ -609,6 +609,7 @@ export class User extends Component { id="user-password" class="form-control" value={this.state.userSettingsForm.new_password} + autoComplete="new-password" onInput={linkEvent( this, this.handleUserSettingsNewPasswordChange @@ -629,6 +630,7 @@ export class User extends Component { id="user-verify-password" class="form-control" value={this.state.userSettingsForm.new_password_verify} + autoComplete="new-password" onInput={linkEvent( this, this.handleUserSettingsNewPasswordVerifyChange @@ -649,6 +651,7 @@ export class User extends Component { id="user-old-password" class="form-control" value={this.state.userSettingsForm.old_password} + autoComplete="new-password" onInput={linkEvent( this, this.handleUserSettingsOldPasswordChange @@ -745,6 +748,7 @@ export class User extends Component { Date: Tue, 12 May 2020 15:27:28 -0400 Subject: Version v0.6.60 --- ui/src/version.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/src/version.ts b/ui/src/version.ts index 4106ca0d..734ae89b 100644 --- a/ui/src/version.ts +++ b/ui/src/version.ts @@ -1 +1 @@ -export const version: string = 'v0.6.59'; +export const version: string = 'v0.6.60'; -- cgit v1.2.3 From 6fe4184f72ca39011a62c8df572ae419a1288334 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 16 May 2020 22:52:28 -0400 Subject: Adding Greek and Basque languages for weblate. --- ui/src/i18next.ts | 4 ++++ ui/src/utils.ts | 8 ++++++++ ui/translations/el.json | 1 + ui/translations/eu.json | 1 + 4 files changed, 14 insertions(+) create mode 100644 ui/translations/el.json create mode 100644 ui/translations/eu.json (limited to 'ui') diff --git a/ui/src/i18next.ts b/ui/src/i18next.ts index 2cd29000..f2b8c10e 100644 --- a/ui/src/i18next.ts +++ b/ui/src/i18next.ts @@ -1,6 +1,8 @@ import i18next from 'i18next'; import { getLanguage } from './utils'; import { en } from './translations/en'; +import { el } from './translations/el'; +import { eu } from './translations/eu'; import { eo } from './translations/eo'; import { es } from './translations/es'; import { de } from './translations/de'; @@ -21,6 +23,8 @@ import { ka } from './translations/ka'; // https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66 const resources = { en, + el, + eu, eo, es, ka, diff --git a/ui/src/utils.ts b/ui/src/utils.ts index f18d996e..69afc7a4 100644 --- a/ui/src/utils.ts +++ b/ui/src/utils.ts @@ -1,4 +1,6 @@ import 'moment/locale/es'; +import 'moment/locale/el'; +import 'moment/locale/eu'; import 'moment/locale/eo'; import 'moment/locale/de'; import 'moment/locale/zh-cn'; @@ -59,6 +61,8 @@ export const mentionDropdownFetchLimit = 10; export const languages = [ { code: 'ca', name: 'Català' }, { code: 'en', name: 'English' }, + { code: 'el', name: 'Ελληνικά' }, + { code: 'eu', name: 'Euskara' }, { code: 'eo', name: 'Esperanto' }, { code: 'es', name: 'Español' }, { code: 'de', name: 'Deutsch' }, @@ -370,6 +374,10 @@ export function getMomentLanguage(): string { lang = 'ka'; } else if (lang.startsWith('hi')) { lang = 'hi'; + } else if (lang.startsWith('el')) { + lang = 'el'; + } else if (lang.startsWith('eu')) { + lang = 'eu'; } else { lang = 'en'; } diff --git a/ui/translations/el.json b/ui/translations/el.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/ui/translations/el.json @@ -0,0 +1 @@ +{} diff --git a/ui/translations/eu.json b/ui/translations/eu.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/ui/translations/eu.json @@ -0,0 +1 @@ +{} -- cgit v1.2.3 From 6fe3d4304920e52a0d27d71bc1a05fdea4915dc5 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 17 May 2020 16:49:34 -0400 Subject: Adding a sponsor. --- ui/s