fix social-app ios patch langs
This commit is contained in:
@@ -187,6 +187,12 @@ function ios-copy-new-files() {
|
||||
echo "✅ Copied AppInfo.tsx"
|
||||
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
|
||||
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"
|
||||
@@ -211,6 +217,14 @@ function ios-copy-new-files() {
|
||||
echo "✅ Copied favicons to bskyweb/static"
|
||||
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 ""
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user