kopia lustrzana https://github.com/Tldraw/Tldraw
feat: Added translation for "loading..." (#823)
* Added translation for "loading..." * Resolve Co-authored-by: Steve Ruiz <steveruizok@gmail.com>pull/816/head^2
rodzic
b32750c43d
commit
240202bb81
|
@ -1,4 +1,5 @@
|
|||
import * as React from 'react'
|
||||
import { FormattedMessage } from 'react-intl'
|
||||
import { Panel } from '~components/Primitives/Panel'
|
||||
import { useTldrawApp } from '~hooks'
|
||||
import { styled } from '~styles'
|
||||
|
@ -10,7 +11,11 @@ export function Loading() {
|
|||
const app = useTldrawApp()
|
||||
const isLoading = app.useStore(loadingSelector)
|
||||
|
||||
return <StyledLoadingPanelContainer hidden={!isLoading}>Loading...</StyledLoadingPanelContainer>
|
||||
return (
|
||||
<StyledLoadingPanelContainer hidden={false}>
|
||||
<FormattedMessage id="loading" values={{ dots: '...' }} />
|
||||
</StyledLoadingPanelContainer>
|
||||
)
|
||||
}
|
||||
|
||||
const StyledLoadingPanelContainer = styled('div', {
|
||||
|
|
|
@ -91,8 +91,9 @@
|
|||
"language": "Langage",
|
||||
"dock.position": "Position du dock",
|
||||
"bottom": "En bas",
|
||||
"loading": "Chargement{dots}",
|
||||
"left": "À gauche",
|
||||
"right": "À droite",
|
||||
"top": "En haut",
|
||||
"page": "Page"
|
||||
}
|
||||
}
|
|
@ -95,5 +95,6 @@
|
|||
"left": "Left",
|
||||
"right": "Right",
|
||||
"top": "Top",
|
||||
"page": "Page"
|
||||
}
|
||||
"page": "Page",
|
||||
"loading": "Loading{dots}"
|
||||
}
|
Ładowanie…
Reference in New Issue