Skip to content

Commit

Permalink
Polyfill webpage UI option (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
luojiyin1987 authored Jul 12, 2024
1 parent 1c69709 commit 915905a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
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;

1 comment on commit 915905a

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for oss-toolbox ready!

✅ Preview
https://oss-toolbox-26lka6506-techquerys-projects.vercel.app

Built with commit 915905a.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.