Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,11 @@ PRIVATE_LIBELLUS_API_TOKEN=replace-me

# --- Analytics ---
PUBLIC_GA_MEASUREMENT_ID=G-XXXXXXXXXX

# --- Firebase Cloud Messaging (web push; $env/static/public) ---
PUBLIC_FIREBASE_API_KEY=replace-me
PUBLIC_FIREBASE_AUTH_DOMAIN=example.firebaseapp.com
PUBLIC_FIREBASE_PROJECT_ID=replace-me
PUBLIC_FIREBASE_MESSAGING_SENDER_ID=000000000000
PUBLIC_FIREBASE_APP_ID=1:000000000000:web:replace-me
PUBLIC_FIREBASE_VAPID_KEY=replace-me
16 changes: 16 additions & 0 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,22 @@
"line_recipient_placeholder": "Select users to notify on LINE",
"line_recipient_not_linked": "LINE not linked",
"line_recipient_preview_count": "{count} LINE user(s)",
"push_card_title": "Push notifications",
"push_card_subtitle": "Receive CropWatch alerts as push notifications on this device.",
"push_enabled_notice": "Push notifications are enabled on this device.",
"push_disabled_notice": "Push notifications are not enabled on this device yet. Enable them to receive alerts even when the app is closed.",
"push_unsupported_notice": "This browser does not support push notifications.",
"push_ios_install_notice": "On iPhone or iPad, first add CropWatch to your Home Screen (Share → Add to Home Screen), then open it from there to enable push notifications.",
"push_denied_notice": "Notifications are blocked for this site. Allow notifications in your browser settings, then try again.",
"push_enable_action": "Enable push notifications",
"push_disable_action": "Disable on this device",
"push_enabled_toast": "Push notifications enabled.",
"push_disabled_toast": "Push notifications disabled on this device.",
"push_enable_failed": "Could not enable push notifications. Please try again.",
"push_recipient_label": "Push recipients",
"push_recipient_placeholder": "Select users to notify by push",
"push_recipient_not_enabled": "Push not set up",
"push_recipient_preview_count": "{count} push recipient(s)",
"settings_regional_title": "Regional",
"settings_regional_subtitle": "Language, timezone, and calendar notation used across the app.",
"settings_timezone_label": "Home timezone",
Expand Down
16 changes: 16 additions & 0 deletions messages/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,22 @@
"line_recipient_placeholder": "LINEで通知するユーザーを選択",
"line_recipient_not_linked": "LINE未連携",
"line_recipient_preview_count": "LINEユーザー{count}名",
"push_card_title": "プッシュ通知",
"push_card_subtitle": "このデバイスでCropWatchアラートをプッシュ通知として受け取れます。",
"push_enabled_notice": "このデバイスでプッシュ通知が有効になっています。",
"push_disabled_notice": "このデバイスではプッシュ通知がまだ有効になっていません。有効にすると、アプリを閉じていてもアラートを受け取れます。",
"push_unsupported_notice": "このブラウザはプッシュ通知に対応していません。",
"push_ios_install_notice": "iPhone・iPadでは、まずCropWatchをホーム画面に追加(共有 → ホーム画面に追加)し、そこから開いてプッシュ通知を有効にしてください。",
"push_denied_notice": "このサイトの通知がブロックされています。ブラウザの設定で通知を許可してから、もう一度お試しください。",
"push_enable_action": "プッシュ通知を有効にする",
"push_disable_action": "このデバイスで無効にする",
"push_enabled_toast": "プッシュ通知を有効にしました。",
"push_disabled_toast": "このデバイスのプッシュ通知を無効にしました。",
"push_enable_failed": "プッシュ通知を有効にできませんでした。もう一度お試しください。",
"push_recipient_label": "プッシュ通知先",
"push_recipient_placeholder": "プッシュ通知するユーザーを選択",
"push_recipient_not_enabled": "プッシュ未設定",
"push_recipient_preview_count": "プッシュ通知先{count}名",
"settings_regional_title": "地域設定",
"settings_regional_subtitle": "アプリ全体で使用される言語、タイムゾーン、カレンダー表記です。",
"settings_timezone_label": "ホームタイムゾーン",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"dependencies": {
"@cropwatchdevelopment/cwui": "0.1.113",
"@supabase/supabase-js": "^2.108.2",
"firebase": "^12.18.0",
"jwt-decode": "^4.0.0"
}
}
Loading
Loading