**Add Latvian translations and enhance localization support**

-  Added Latvian (`lv`) JSON translations and validation/password localization files.
- 🛠️ Updated `lang-country` config to include `lv-LV` and centralized language definitions.
- 🌐 Extended sidebar and navigation with new translatable strings.
-  Introduced 72px width customization for the sidebar layout.
-  Improved timezone mapping in Nostr publishing commands (added `Europe/Riga`).
- 🛠️ Refactored language selector to dynamically source available languages from the config.
This commit is contained in:
HolgerHatGarKeineNode
2026-05-20 11:45:50 +02:00
parent e3f8c4c232
commit 35ddad365c
17 changed files with 951 additions and 28 deletions
@@ -16,6 +16,7 @@ class PublishUnpublishedItems extends Command
use NostrTrait;
protected $signature = 'nostr:publish {--model=}';
protected $description = 'Publish unpublished items to Nostr';
private const TZ_MAP = [
@@ -27,6 +28,7 @@ class PublishUnpublishedItems extends Command
'pl' => 'Europe/Warsaw',
'es' => 'Europe/Madrid',
'pt' => 'Europe/Lisbon',
'lv' => 'Europe/Riga',
];
private const DOMAIN_MAP = [
@@ -62,15 +64,17 @@ class PublishUnpublishedItems extends Command
default => null,
};
if (!$query) {
if (! $query) {
$this->error("Unsupported model: {$modelName}");
return;
}
$model = $query->first();
if (!$model) {
if (! $model) {
$this->info("No unpublished items for model: {$modelName}");
return;
}