Skip to content

Commit 43f5a2c

Browse files
committed
Merge develop, resolve merge conflicts
2 parents d627947 + 36626b2 commit 43f5a2c

File tree

6 files changed

+774
-50365
lines changed

6 files changed

+774
-50365
lines changed

client/components/Nav.jsx

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -671,40 +671,50 @@ class Nav extends React.PureComponent {
671671
<button
672672
onFocus={this.handleFocusForLang}
673673
onBlur={this.handleBlur}
674-
value="zh-CN"
674+
value="ja"
675675
onClick={(e) => this.handleLangSelection(e)}
676676
>
677-
简体中文
677+
日本語
678678
</button>
679679
</li>
680680
<li className="nav__dropdown-item">
681681
<button
682682
onFocus={this.handleFocusForLang}
683683
onBlur={this.handleBlur}
684-
value="zh-TW"
684+
value="pt-BR"
685685
onClick={(e) => this.handleLangSelection(e)}
686686
>
687-
正體中文
687+
Português
688688
</button>
689689
</li>
690690
<li className="nav__dropdown-item">
691691
<button
692692
onFocus={this.handleFocusForLang}
693693
onBlur={this.handleBlur}
694-
value="ja"
694+
value="uk-UA"
695695
onClick={(e) => this.handleLangSelection(e)}
696696
>
697-
日本語
697+
Українська
698698
</button>
699699
</li>
700700
<li className="nav__dropdown-item">
701701
<button
702702
onFocus={this.handleFocusForLang}
703703
onBlur={this.handleBlur}
704-
value="pt-BR"
704+
value="zh-CN"
705705
onClick={(e) => this.handleLangSelection(e)}
706706
>
707-
Português
707+
简体中文
708+
</button>
709+
</li>
710+
<li className="nav__dropdown-item">
711+
<button
712+
onFocus={this.handleFocusForLang}
713+
onBlur={this.handleBlur}
714+
value="zh-TW"
715+
onClick={(e) => this.handleLangSelection(e)}
716+
>
717+
正體中文
708718
</button>
709719
</li>
710720
</ul>

client/i18n.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
import i18n from 'i18next';
22
import { initReactI18next } from 'react-i18next';
33
import Backend from 'i18next-http-backend';
4-
import { enUS, es, ja, hi, ptBR, de, frCA, zhCN, zhTW } from 'date-fns/locale';
4+
import {
5+
enUS,
6+
es,
7+
ja,
8+
hi,
9+
ptBR,
10+
de,
11+
frCA,
12+
zhCN,
13+
zhTW,
14+
uk
15+
} from 'date-fns/locale';
516

617
const fallbackLng = ['en-US'];
718
const availableLanguages = [
@@ -12,6 +23,7 @@ const availableLanguages = [
1223
'hi',
1324
'ja',
1425
'pt-BR',
26+
'uk-UA',
1527
'zh-CN',
1628
'zh-TW'
1729
];
@@ -25,6 +37,7 @@ export function languageKeyToLabel(lang) {
2537
hi: 'हिन्दी',
2638
ja: '日本語',
2739
'pt-BR': 'Português',
40+
'uk-UA': 'Українська',
2841
'zh-CN': '简体中文',
2942
'zh-TW': '正體中文'
3043
};
@@ -40,6 +53,7 @@ export function languageKeyToDateLocale(lang) {
4053
hi,
4154
ja,
4255
'pt-BR': ptBR,
56+
'uk-UA': uk,
4357
'zh-CN': zhCN,
4458
'zh-TW': zhTW
4559
};

client/modules/IDE/components/PreviewFrame.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ function PreviewFrame({ fullView }) {
2424
const frameUrl = previewUrl;
2525
const sandboxAttributes = `allow-forms allow-modals allow-pointer-lock allow-popups
2626
allow-same-origin allow-scripts allow-top-navigation-by-user-activation allow-downloads`;
27-
const allow =
28-
'accelerometer; autoplay; camera; encrypted-media; geolocation; gyroscope; microphone; magnetometer; midi; vr;';
27+
const allow = `accelerometer; autoplay; camera; encrypted-media; geolocation;
28+
gyroscope; microphone; magnetometer; midi; serial; vr;`;
2929
return (
3030
<Frame
3131
title="sketch preview"

0 commit comments

Comments
 (0)