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

New spanish translations #7319

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
457 changes: 240 additions & 217 deletions src/locale/locales/an/messages.po

Large diffs are not rendered by default.

437 changes: 230 additions & 207 deletions src/locale/locales/ast/messages.po

Large diffs are not rendered by default.

441 changes: 232 additions & 209 deletions src/locale/locales/ca/messages.po

Large diffs are not rendered by default.

437 changes: 230 additions & 207 deletions src/locale/locales/de/messages.po

Large diffs are not rendered by default.

3,022 changes: 1,756 additions & 1,266 deletions src/locale/locales/el/messages.po

Large diffs are not rendered by default.

437 changes: 230 additions & 207 deletions src/locale/locales/en-GB/messages.po

Large diffs are not rendered by default.

420 changes: 221 additions & 199 deletions src/locale/locales/en/messages.po

Large diffs are not rendered by default.

637 changes: 330 additions & 307 deletions src/locale/locales/es/messages.po

Large diffs are not rendered by default.

437 changes: 230 additions & 207 deletions src/locale/locales/fi/messages.po

Large diffs are not rendered by default.

171 changes: 91 additions & 80 deletions src/locale/locales/fr/messages.po

Large diffs are not rendered by default.

437 changes: 230 additions & 207 deletions src/locale/locales/ga/messages.po

Large diffs are not rendered by default.

437 changes: 230 additions & 207 deletions src/locale/locales/gl/messages.po

Large diffs are not rendered by default.

437 changes: 230 additions & 207 deletions src/locale/locales/hi/messages.po

Large diffs are not rendered by default.

3,147 changes: 1,320 additions & 1,827 deletions src/locale/locales/hu/messages.po

Large diffs are not rendered by default.

437 changes: 230 additions & 207 deletions src/locale/locales/id/messages.po

Large diffs are not rendered by default.

326 changes: 169 additions & 157 deletions src/locale/locales/it/messages.po

Large diffs are not rendered by default.

427 changes: 220 additions & 207 deletions src/locale/locales/ja/messages.po

Large diffs are not rendered by default.

437 changes: 230 additions & 207 deletions src/locale/locales/km/messages.po

Large diffs are not rendered by default.

171 changes: 91 additions & 80 deletions src/locale/locales/ko/messages.po

Large diffs are not rendered by default.

437 changes: 230 additions & 207 deletions src/locale/locales/ne/messages.po

Large diffs are not rendered by default.

455 changes: 239 additions & 216 deletions src/locale/locales/nl/messages.po

Large diffs are not rendered by default.

447 changes: 235 additions & 212 deletions src/locale/locales/pl/messages.po

Large diffs are not rendered by default.

437 changes: 230 additions & 207 deletions src/locale/locales/pt-BR/messages.po

Large diffs are not rendered by default.

437 changes: 230 additions & 207 deletions src/locale/locales/ro/messages.po

Large diffs are not rendered by default.

2,111 changes: 1,081 additions & 1,030 deletions src/locale/locales/ru/messages.po

Large diffs are not rendered by default.

437 changes: 230 additions & 207 deletions src/locale/locales/th/messages.po

Large diffs are not rendered by default.

437 changes: 230 additions & 207 deletions src/locale/locales/tr/messages.po

Large diffs are not rendered by default.

437 changes: 230 additions & 207 deletions src/locale/locales/uk/messages.po

Large diffs are not rendered by default.

447 changes: 235 additions & 212 deletions src/locale/locales/vi/messages.po

Large diffs are not rendered by default.

260 changes: 135 additions & 125 deletions src/locale/locales/zh-CN/messages.po

Large diffs are not rendered by default.

264 changes: 138 additions & 126 deletions src/locale/locales/zh-HK/messages.po

Large diffs are not rendered by default.

260 changes: 135 additions & 125 deletions src/locale/locales/zh-TW/messages.po

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion src/state/queries/feed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import {
moderateFeedGenerator,
RichText,
} from '@atproto/api'
import {msg} from '@lingui/macro'
import {useLingui} from '@lingui/react'
import {
InfiniteData,
keepPreviousData,
Expand Down Expand Up @@ -408,6 +410,7 @@ export function usePinnedFeedsInfos() {
const agent = useAgent()
const {data: preferences, isLoading: isLoadingPrefs} = usePreferencesQuery()
const pinnedItems = preferences?.savedFeeds.filter(feed => feed.pinned) ?? []
const {_} = useLingui()

return useQuery({
staleTime: STALE.INFINITY,
Expand Down Expand Up @@ -469,7 +472,7 @@ export function usePinnedFeedsInfos() {
} else if (pinnedItem.type === 'timeline') {
result.push({
type: 'feed',
displayName: 'Following',
displayName: _(msg`Following`),
uri: pinnedItem.value,
feedDescriptor: 'following',
route: {
Expand Down
8 changes: 3 additions & 5 deletions src/view/screens/ProfileList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ import * as Prompt from '#/components/Prompt'
import {ReportDialog, useReportDialogControl} from '#/components/ReportDialog'
import {RichText} from '#/components/RichText'

const SECTION_TITLES_CURATE = ['Posts', 'People']

interface SectionRef {
scrollToTop: () => void
}
Expand All @@ -103,7 +101,6 @@ function ProfileListScreenInner(props: Props) {
const {data: preferences} = usePreferencesQuery()
const {data: list, error: listError} = useListQuery(resolvedUri?.uri)
const moderationOpts = useModerationOpts()

if (resolveError) {
return (
<Layout.Content>
Expand Down Expand Up @@ -162,6 +159,7 @@ function ProfileListScreenLoaded({
const isHidden = list.labels?.findIndex(l => l.val === '!hide') !== -1
const isOwner = currentAccount?.did === list.creator.did
const scrollElRef = useAnimatedRef()
const SECTION_TITLES_CURATE = [_(msg`Posts`), _(msg`People`)]
Copy link
Contributor

Choose a reason for hiding this comment

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

#7175 is already working on this, I suggest keeping it separate from the Spanish translation update PR to avoid overlaps.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh thanks! I didn't notice. Will roll back the changes then.


const moderation = React.useMemo(() => {
return moderateUserList(list, moderationOpts)
Expand Down Expand Up @@ -814,7 +812,7 @@ const FeedSection = React.forwardRef<SectionRef, FeedSectionProps>(
<EmptyState icon="hashtag" message={_(msg`This feed is empty.`)} />
{isOwner && (
<NewButton
label={_(msg`Start adding people`)}
label={_(msg`Start adding people!`)}
onPress={onPressAddUser}
color="primary"
size="small"
Expand Down Expand Up @@ -935,7 +933,7 @@ const AboutSection = React.forwardRef<SectionRef, AboutSectionProps>(
{isOwner && (
<NewButton
testID="emptyStateAddUserBtn"
label={_(msg`Start adding people`)}
label={_(msg`Start adding people!`)}
onPress={onPressAddUser}
color="primary"
size="small"
Expand Down