fix social-app ios patch langs
This commit is contained in:
@@ -1,12 +1,6 @@
|
|||||||
diff --git a/src/env/common.ts b/src/env/common.ts
|
|
||||||
index 04e98c49c..a4ee47932 100644
|
|
||||||
--- a/src/env/common.ts
|
--- a/src/env/common.ts
|
||||||
+++ b/src/env/common.ts
|
+++ b/src/env/common.ts
|
||||||
@@ -107,19 +107,17 @@ export const GCP_PROJECT_ID: number =
|
@@ -128,9 +128,7 @@
|
||||||
/**
|
|
||||||
* URLs for the app config web worker. Can be a
|
|
||||||
* locally running server, see `env.example` for more.
|
|
||||||
+ * Disabled for self-hosted environment to avoid CORS errors
|
|
||||||
*/
|
*/
|
||||||
export const GEOLOCATION_DEV_URL = process.env.GEOLOCATION_DEV_URL
|
export const GEOLOCATION_DEV_URL = process.env.GEOLOCATION_DEV_URL
|
||||||
export const GEOLOCATION_PROD_URL = `https://ip.bsky.app`
|
export const GEOLOCATION_PROD_URL = `https://ip.bsky.app`
|
||||||
@@ -17,8 +11,7 @@ index 04e98c49c..a4ee47932 100644
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* URLs for the live-event config web worker. Can be a
|
* URLs for the live-event config web worker. Can be a
|
||||||
* locally running server, see `env.example` for more.
|
@@ -138,9 +136,7 @@
|
||||||
+ * Disabled for self-hosted environment
|
|
||||||
*/
|
*/
|
||||||
export const LIVE_EVENTS_DEV_URL = process.env.LIVE_EVENTS_DEV_URL
|
export const LIVE_EVENTS_DEV_URL = process.env.LIVE_EVENTS_DEV_URL
|
||||||
export const LIVE_EVENTS_PROD_URL = `https://live-events.workers.bsky.app`
|
export const LIVE_EVENTS_PROD_URL = `https://live-events.workers.bsky.app`
|
||||||
@@ -26,3 +19,6 @@ index 04e98c49c..a4ee47932 100644
|
|||||||
- ? (LIVE_EVENTS_DEV_URL ?? LIVE_EVENTS_PROD_URL)
|
- ? (LIVE_EVENTS_DEV_URL ?? LIVE_EVENTS_PROD_URL)
|
||||||
- : LIVE_EVENTS_PROD_URL
|
- : LIVE_EVENTS_PROD_URL
|
||||||
+export const LIVE_EVENTS_URL = null
|
+export const LIVE_EVENTS_URL = null
|
||||||
|
|
||||||
|
/**
|
||||||
|
* URLs for the app-config web worker. Can be a
|
||||||
|
|||||||
@@ -125,15 +125,15 @@
|
|||||||
- <Admonition.Content>
|
- <Admonition.Content>
|
||||||
- <Admonition.Text>
|
- <Admonition.Text>
|
||||||
- {!isOverAppMinAccessAge ? (
|
- {!isOverAppMinAccessAge ? (
|
||||||
- <Trans>
|
- <Plural
|
||||||
- You must be {MIN_ACCESS_AGE} years of age or older
|
- value={MIN_ACCESS_AGE}
|
||||||
- to create an account.
|
- other="You must be # years of age or older to create an account."
|
||||||
- </Trans>
|
- />
|
||||||
- ) : (
|
- ) : (
|
||||||
- <Trans>
|
- <Plural
|
||||||
- You must be {aaRegionConfig.minAccessAge} years of
|
- value={aaRegionConfig.minAccessAge}
|
||||||
- age or older to create an account in your region.
|
- other="You must be # years of age or older to create an account in your region."
|
||||||
- </Trans>
|
- />
|
||||||
- )}
|
- )}
|
||||||
- </Admonition.Text>
|
- </Admonition.Text>
|
||||||
- {IS_NATIVE &&
|
- {IS_NATIVE &&
|
||||||
|
|||||||
@@ -7,13 +7,12 @@
|
|||||||
import {
|
import {
|
||||||
type AppBskyActorDefs,
|
type AppBskyActorDefs,
|
||||||
moderateProfile,
|
moderateProfile,
|
||||||
@@ -9,9 +9,11 @@
|
@@ -9,8 +9,10 @@
|
||||||
} from '@atproto/api'
|
} from '@atproto/api'
|
||||||
import {msg, Trans} from '@lingui/macro'
|
import {msg, Trans} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
+import {useQuery} from '@tanstack/react-query'
|
+import {useQuery} from '@tanstack/react-query'
|
||||||
|
|
||||||
import {useActorStatus} from '#/lib/actor-status'
|
|
||||||
import {useHaptics} from '#/lib/haptics'
|
import {useHaptics} from '#/lib/haptics'
|
||||||
+import {useOpenLink} from '#/lib/hooks/useOpenLink'
|
+import {useOpenLink} from '#/lib/hooks/useOpenLink'
|
||||||
import {sanitizeDisplayName} from '#/lib/strings/display-names'
|
import {sanitizeDisplayName} from '#/lib/strings/display-names'
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
import {ProfileHeaderSuggestedFollows} from './SuggestedFollows'
|
import {ProfileHeaderSuggestedFollows} from './SuggestedFollows'
|
||||||
|
|
||||||
const SERVICE_FAVICONS: Record<string, any> = {
|
const SERVICE_FAVICONS: Record<string, any> = {
|
||||||
@@ -231,6 +232,7 @@
|
@@ -251,6 +252,7 @@
|
||||||
<View style={a.gap_md}>
|
<View style={a.gap_md}>
|
||||||
<ProfileHeaderMetrics profile={profile} />
|
<ProfileHeaderMetrics profile={profile} />
|
||||||
<ProfileServiceLinks profile={profile} />
|
<ProfileServiceLinks profile={profile} />
|
||||||
|
|||||||
12162
ios/patching/ja-messages.po
Normal file
12162
ios/patching/ja-messages.po
Normal file
File diff suppressed because it is too large
Load Diff
@@ -187,6 +187,12 @@ function ios-copy-new-files() {
|
|||||||
echo "✅ Copied AppInfo.tsx"
|
echo "✅ Copied AppInfo.tsx"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Copy Japanese locale (translation overrides)
|
||||||
|
if [ -f "$patching_dir/ja-messages.po" ]; then
|
||||||
|
cp "$patching_dir/ja-messages.po" "$target_dir/src/locale/locales/ja/messages.po"
|
||||||
|
echo "✅ Copied ja-messages.po"
|
||||||
|
fi
|
||||||
|
|
||||||
# Copy splash video
|
# Copy splash video
|
||||||
if [ -f "$d/ios/assets/splash/illustration-mobile.mp4" ]; then
|
if [ -f "$d/ios/assets/splash/illustration-mobile.mp4" ]; then
|
||||||
cp "$d/ios/assets/splash/illustration-mobile.mp4" "$target_dir/assets/splash/illustration-mobile.mp4"
|
cp "$d/ios/assets/splash/illustration-mobile.mp4" "$target_dir/assets/splash/illustration-mobile.mp4"
|
||||||
@@ -211,6 +217,14 @@ function ios-copy-new-files() {
|
|||||||
echo "✅ Copied favicons to bskyweb/static"
|
echo "✅ Copied favicons to bskyweb/static"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Compile locale if messages.po was copied
|
||||||
|
if [ -f "$patching_dir/ja-messages.po" ]; then
|
||||||
|
echo "🌐 Compiling locale..."
|
||||||
|
pushd "$target_dir" > /dev/null
|
||||||
|
yarn intl:compile 2>/dev/null && echo "✅ Compiled locale" || echo "⚠️ Locale compile skipped (yarn not ready)"
|
||||||
|
popd > /dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user