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

feat: Added russian language support #6215

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
18473fa
chore: auto merge branches (#6133)
github-actions[bot] Apr 27, 2023
e44cec7
chore: bump version 5.30.0
zombieJ May 5, 2023
ad72739
Update Qcode of DingTalk group in README.md (#6148)
ctyytc May 9, 2023
dfbd416
docs: update the description of the css-variables.zh/en.md (#6152)
May 10, 2023
a55ebfb
fix(PullToRefresh): fix shaking when in high resolution screen (#6153)
zombieJ May 10, 2023
69448b5
fix(swiper): repair onIndexChange trigger #6143 (#6144)
1587315093 May 10, 2023
4cbb6d6
feat(Swiper): add active class when not a loop (#6159)
shunyue1320 May 12, 2023
508663d
enhance(List): ListItem `onClick` type completion (#6158)
dislido May 12, 2023
671c077
style: code simplify (#6161)
1587315093 May 13, 2023
e9777dd
fix: `useSyncExternalStore` causes error on ssr (#6177)
miracles1919 May 25, 2023
4be09f6
feat(Popup): add `closeOnSwipe` prop (#6203)
miracles1919 Jun 12, 2023
9e81ad6
fix: slider performance problem (#6204)
kringt06 Jun 12, 2023
7c4142b
chore: auto merge branches (#6205)
github-actions[bot] Jun 13, 2023
835ee8b
chore: bump 5.31.0
zombieJ Jun 13, 2023
3cdd8c9
fix(NoticeBar): notice-bar wrap if set extra & closeable together (#6…
MuyePeikon Jun 14, 2023
72ae636
fix(Form): add props.children to memo deps (#6207)
IronKinoko Jun 16, 2023
efb30b1
fix: swiper setCurrent may force affect of getCurrent (#6208)
zombieJ Jun 16, 2023
0c890b4
chore: bump 5.31.1
zombieJ Jun 16, 2023
dd78ba3
chore: upgrade `@floating-ui/dom` (#6212)
miracles1919 Jun 21, 2023
510b14d
Create ru-RU.ts
goodm2ice Jun 25, 2023
234c083
test: fix failed test (#6218)
miracles1919 Jun 26, 2023
04a59db
fix(Input): fix the display issue of numbers starting with 0 (#6217)
miracles1919 Jun 27, 2023
85ee714
Merge remote-tracking branch 'antd-mobile/master' into patch-1
miracles1919 Jun 27, 2023
2368d61
feat: add ru-RU
miracles1919 Jun 27, 2023
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
15 changes: 1 addition & 14 deletions .dumi/theme/builtins/preview-default/Previewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { history } from 'dumi'
import type { IPreviewerComponentProps } from 'dumi/theme'
import {
context,
// useRiddle,
useMotions,
useCopy,
useLocaleProps,
Expand Down Expand Up @@ -66,9 +65,7 @@ const Previewer: React.FC<IPreviewerProps> = oProps => {
const openCSB = useCodeSandbox(
props.hideActions?.includes('CSB') ? null : props
)
// const openRiddle = useRiddle(
// props.hideActions?.includes('RIDDLE') ? null : props
// )

const [execMotions, isMotionRunning] = useMotions(
props.motions || [],
demoRef.current
Expand Down Expand Up @@ -119,14 +116,6 @@ const Previewer: React.FC<IPreviewerProps> = oProps => {
onClick={openCSB}
/>
)}
{/*{openRiddle && (*/}
{/* <button*/}
{/* title='Open demo on Riddle'*/}
{/* className='__dumi-default-icon'*/}
{/* role='riddle'*/}
{/* onClick={openRiddle}*/}
{/* />*/}
{/*)}*/}
{props.motions && (
<button
title='Execute motions'
Expand Down Expand Up @@ -159,8 +148,6 @@ const Previewer: React.FC<IPreviewerProps> = oProps => {
{!isSingleFile && (
<Tabs
className='__dumi-default-previewer-source-tab'
// prefixCls='__dumi-default-tabs'
// moreIcon='···'
stretch={false}
defaultActiveKey={currentFile}
onChange={handleFileChange}
Expand Down
2 changes: 0 additions & 2 deletions .dumi/theme/builtins/preview-default/use-code-sandbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,6 @@ export const sleep = (time: number) => new Promise(resolve => setTimeout(resolve
),
}

// console.log('Files:', existDemoBlock, files)

return serialize({ files })
}

Expand Down
7 changes: 0 additions & 7 deletions .dumi/theme/components/SideMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import type { FC } from 'react'
import React, { useContext } from 'react'
import { context, NavLink } from 'dumi/theme'
import './SideMenu.less'
// import { DocSearch } from '@docsearch/react'
// import '@docsearch/css'

interface INavbarProps {
location: any
Expand All @@ -28,11 +26,6 @@ const SideMenu: FC<INavbarProps> = ({ location }) => {
<div className='__dumi-default-menu-inner'>
{/* menu list */}
<ul className='__dumi-default-menu-list'>
{/*<DocSearch*/}
{/* appId='BH4D9OD16A'*/}
{/* indexName='ant_design_mobile'*/}
{/* apiKey='3f05ea4cbd28d07129a5e32e87a856b5'*/}
{/*/>*/}
{menu.map(item => {
// always use meta from routes to reduce menu data size
const hasChildren = item.children && Boolean(item.children.length)
Expand Down
3 changes: 1 addition & 2 deletions .dumi/theme/components/device.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import type { FC } from 'react'
import React, { useState, useContext, useEffect } from 'react'
import { QRCodeSVG } from 'qrcode.react'
import { context } from 'dumi/theme'
import { usePrefersColor } from 'dumi/theme'
import { context, usePrefersColor } from 'dumi/theme'
import './device.less'
import { Popover } from 'antd-mobile'

Expand Down
2 changes: 1 addition & 1 deletion .dumi/theme/components/slug-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const SlugList: FC<Props> = props => {
<div className='adm-doc-toc'>
<ul role='slug-list'>
{slugs
.filter(({ depth }, index) => depth > 1 && depth < 4)
.filter(({ depth }) => depth > 1 && depth < 4)
.map(slug => (
<li key={slug.heading} title={slug.value} data-depth={slug.depth}>
<AnchorLink to={`#${slug.heading}`}>
Expand Down
2 changes: 1 addition & 1 deletion .dumi/theme/layouts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Features = (features: any) => (

const Layout: React.FC<IRouteComponentProps> = ({ children, location }) => {
const {
config: { mode, repository },
config: { repository },
meta,
locale,
} = useContext(context)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<span> · </span>
<a href="https://discord.gg/jmNvw4WFYn">Discord</a>
<span> · </span>
<a href="https://gw.alipayobjects.com/mdn/rms_25513e/afts/img/A*hBjlR4nUWjkAAAAAAAAAAAAAARQnAQ">钉钉</a>
<a href="https://user-images.githubusercontent.com/22469543/197447477-1f10603d-90e9-43ea-a023-6538c5cf40e2.jpeg">钉钉</a>
</h4>
</div>

Expand Down
10 changes: 3 additions & 7 deletions config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,9 @@ const config: IConfig = {
['en', 'English'],
['zh', '中文'],
],
extraPostCSSPlugins: [
// pxToRem({
// rootValue: 50,
// propList: ['*'],
// }),
shouldDisableCSSVar && postcssDisableCSSVars(),
].filter(i => i),
extraPostCSSPlugins: [shouldDisableCSSVar && postcssDisableCSSVars()].filter(
i => i
),
themeConfig: {
hd: {
rules: [
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/css-variables.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Next, we need to set the value of the CSS variable. There are two ways:

### Method 1: Set in the CSS file

Add a custom `className` to the Input component:
Add a custom `className` to the Button component:

```jsx
<Button className='my-button'/>
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/css-variables.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

### 方法一:在 CSS 文件中设置

Input 组件加一个自定义的 `className`:
Button 组件加一个自定义的 `className`:

```jsx
<Button className='my-button'/>
Expand Down
1 change: 1 addition & 0 deletions docs/guide/i18n.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ The following languages are currently supported:
| Danish | da-DK |
| Norwegian (Bokmål) | nb-NO |
| Dutch (Netherlands) | nl-NL |
| Russian (Russia) | ru-RU |

See more usage at [ConfigProvider](../components/config-provider).

Expand Down
1 change: 1 addition & 0 deletions docs/guide/i18n.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ return (
| 丹麦语 | da-DK |
| 挪威 | nb-NO |
| 荷兰语 | nl-NL |
| 俄罗斯语 | ru-RU |

具体的使用方法请参考 [ConfigProvider](../components/config-provider) 文档。

Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
maxConcurrency: 1,
// maxConcurrency: 1,
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
modulePathIgnorePatterns: ['<rootDir>/lib/', '<rootDir>/dist/'],
moduleDirectories: ['node_modules', 'src/tests'],
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "antd-mobile",
"version": "5.29.1",
"version": "5.31.1",
"scripts": {
"start": "dumi dev",
"build": "gulp",
Expand All @@ -15,8 +15,8 @@
"pub:dev": "npm publish ./lib --tag dev"
},
"dependencies": {
"@floating-ui/dom": "^1.2.6",
"@rc-component/mini-decimal": "^1.0.1",
"@floating-ui/dom": "^1.4.2",
"@rc-component/mini-decimal": "^1.1.0",
"@react-spring/web": "~9.6.1",
"@use-gesture/react": "10.2.20",
"ahooks": "^3.7.6",
Expand Down
Loading
Loading