From 6262466cd2ef37fd971e58bb208adb72c5952464 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Thu, 14 May 2026 15:24:55 +0300 Subject: [PATCH] restore compile-if-needed --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index bfbb262c5a..22bb2d6545 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ }, "scripts": { "prepare": "is-ci || husky install", + "postinstall": "pnpm intl:compile-if-needed", "prebuild": "EXPO_NO_GIT_STATUS=1 expo prebuild --clean", "android": "expo run:android", "android:prod": "expo run:android --variant release", @@ -65,6 +66,7 @@ "intl:extract": "lingui extract --clean --locale en", "intl:extract:all": "lingui extract --clean", "intl:compile": "lingui compile", + "intl:compile-if-needed": "is-ci || [ -f src/locale/locales/en/messages.ts ] || pnpm intl:compile", "intl:pull": "crowdin download translations --verbose -b main", "intl:push": "crowdin push translations --verbose -b main", "intl:push-sources": "crowdin push sources --verbose -b main",