From a8f1257948ec681cdaac37eba3367b38f8853d07 Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode Date: Wed, 10 Dec 2025 03:46:14 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=8D=20Add=20Austria=20and=20Switzerlan?= =?UTF-8?q?d=20to=20German=20locale=20mapping=20in=20Nostr=20publishing=20?= =?UTF-8?q?command=20-=20Extend=20`TZ=5FMAP`=20and=20`DOMAIN=5FMAP`=20with?= =?UTF-8?q?=20`'at'`=20and=20`'ch'`=20entries=20pointing=20to=20`Europe/Be?= =?UTF-8?q?rlin`=20and=20`portal.einundzwanzig.space`=20respectively.=20-?= =?UTF-8?q?=20Adjust=20locale=20setting=20logic=20to=20use=20`'de'`=20for?= =?UTF-8?q?=20Austria=20and=20Switzerland,=20ensuring=20consistent=20langu?= =?UTF-8?q?age=20handling=20in=20Nostr=20publishing=20flows.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/Nostr/PublishUnpublishedItems.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/Nostr/PublishUnpublishedItems.php b/app/Console/Commands/Nostr/PublishUnpublishedItems.php index d80df79..9862f2d 100644 --- a/app/Console/Commands/Nostr/PublishUnpublishedItems.php +++ b/app/Console/Commands/Nostr/PublishUnpublishedItems.php @@ -20,6 +20,8 @@ class PublishUnpublishedItems extends Command private const TZ_MAP = [ 'de' => 'Europe/Berlin', + 'at' => 'Europe/Berlin', + 'ch' => 'Europe/Berlin', 'nl' => 'Europe/Amsterdam', 'hu' => 'Europe/Budapest', 'pl' => 'Europe/Warsaw', @@ -29,6 +31,8 @@ class PublishUnpublishedItems extends Command private const DOMAIN_MAP = [ 'de' => 'portal.einundzwanzig.space', + 'at' => 'portal.einundzwanzig.space', + 'ch' => 'portal.einundzwanzig.space', 'nl' => 'portal.eenentwintig.net', 'hu' => 'portal.huszonegy.world', 'pl' => 'portal.dwadziesciajeden.pl', @@ -110,7 +114,7 @@ class PublishUnpublishedItems extends Command $timezone = self::TZ_MAP[$countryCode] ?? 'UTC'; config([ 'app.user-timezone' => $timezone, - 'app.locale' => $countryCode, + 'app.locale' => in_array($countryCode, ['at', 'ch']) ? 'de' : $countryCode, ]); } }