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 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
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('select_compatible_browser'), 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('select_features')}</Accordion.Header>
<Accordion.Body>
<Tree
filterPlaceholder="features"
filterPlaceholder={t('search_feature')}
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
select_compatible_browser: 'select Compatible Browser',
select_features: 'select features',
search_feature: '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
select_compatible_browser: '选择兼容浏览器',
select_features: '选择特性',
search_feature: '搜索特性',
} 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
select_compatible_browser: '選擇相容瀏覽器',
select_features: '選擇特性',
search_feature: '搜尋特性',
} as const;