mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-05-20 20:55:36 +00:00
✨ **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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user