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

Polyfill webpage UI option #15

Merged
merged 5 commits into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
8 changes: 5 additions & 3 deletions pages/polyfill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ export default class PolyfillPage extends Component {
<header className="d-flex justify-content-around align-items-center">
<h1>{t('Web_polyfill_CDN')}</h1>

<DropdownButton title={textJoin(t('examples'), currentUA)}>
<DropdownButton
title={textJoin(t('selectCompatibleBrowser'), currentUA)}
>
{Object.entries(UserAgent).map(([name, value]) => (
<Dropdown.Item
key={name}
Expand All @@ -73,10 +75,10 @@ export default class PolyfillPage extends Component {

<Accordion>
<Accordion.Item eventKey="0">
<Accordion.Header>features</Accordion.Header>
<Accordion.Header>{t('features')}</Accordion.Header>
<Accordion.Body>
<Tree
filterPlaceholder="features"
filterPlaceholder={t('searchFeature')}
filter
selectionMode="checkbox"
value={options}
Expand Down
5 changes: 5 additions & 0 deletions translation/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,9 @@ export default {
range_file: 'file',
range_module: 'module',
last_step: 'back',

//polyfill page
selectCompatibleBrowser: 'select Compatible Browser',
luojiyin1987 marked this conversation as resolved.
Show resolved Hide resolved
features: 'select features',
luojiyin1987 marked this conversation as resolved.
Show resolved Hide resolved
searchFeature: 'search Feature',
} as const;
5 changes: 5 additions & 0 deletions translation/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,9 @@ export default {
range_file: '文件',
range_module: '模块',
last_step: '上一步',

//polyfill page
selectCompatibleBrowser: '选择兼容浏览器',
features: '选择功能组件',
luojiyin1987 marked this conversation as resolved.
Show resolved Hide resolved
searchFeature: '搜索功能组件',
} as const;
5 changes: 5 additions & 0 deletions translation/zh-TW.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,9 @@ export default {
range_file: '檔案',
range_module: '模組',
last_step: '上一步',

//polyfill page
selectCompatibleBrowser: '選擇相容瀏覽器',
features: '選擇功能模組',
searchFeature: '搜尋功能模組',
} as const;