Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin committed Oct 8, 2023
1 parent 71c8503 commit 9f7e388
Show file tree
Hide file tree
Showing 55 changed files with 260 additions and 301 deletions.
18 changes: 1 addition & 17 deletions app/Console/Commands/Local/MonicaLocalize.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,7 @@ private function updateLocales(array $locales): void

if ($this->option('update')) {
$this->info('Updating locales...');

$aliases = config('lang-publisher.aliases');
try {
foreach ($aliases as $locale => $alias) {
File::move(lang_path($alias.'.json'), lang_path($locale.'.json'));
File::moveDirectory(lang_path($alias), lang_path($locale), true);
}

config(['lang-publisher.aliases' => []]);

$this->call('lang:update');
} finally {
foreach ($aliases as $locale => $alias) {
File::move(lang_path($locale.'.json'), lang_path($alias.'.json'));
File::moveDirectory(lang_path($locale), lang_path($alias), true);
}
}
$this->call('lang:update');
}

$newLocales = collect($locales)->diff($currentLocales);
Expand Down
11 changes: 0 additions & 11 deletions config/lang-publisher.php

This file was deleted.

2 changes: 1 addition & 1 deletion config/localizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
'supported_locales' => ['en', 'ar', 'bn', 'ca', 'da', 'de', 'es', 'el',
'fr', 'he', 'hi', 'it', 'ja', 'ml', 'nl', 'nn', 'pa', 'pl', 'pt',
'pt-BR', 'ro', 'ru', 'sv', 'te', 'tr', 'ur', 'vi', 'zh-CN', 'zh-TW',
'pt_BR', 'ro', 'ru', 'sv', 'te', 'tr', 'ur', 'vi', 'zh_CN', 'zh_TW',
],

/**
Expand Down
2 changes: 1 addition & 1 deletion database/migrations/2023_10_06_064814_rename_locales.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
public function up(): void
{
User::where('locale', 'no')->update(['locale' => 'nn']);
User::where('locale', 'zh')->update(['locale' => 'zh-CN']);
User::where('locale', 'zh')->update(['locale' => 'zh_CN']);
}
};
2 changes: 1 addition & 1 deletion lang/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -1283,4 +1283,4 @@
"😩 Awful": "😩 فظيعة",
"😶‍🌫️ Neutral": "😶‍🌫️ محايد",
"🥳 Awesome": "🥳رائع"
}
}
2 changes: 1 addition & 1 deletion lang/bn.json
Original file line number Diff line number Diff line change
Expand Up @@ -1283,4 +1283,4 @@
"😩 Awful": "😩 জঘন্য",
"😶‍🌫️ Neutral": "😶‍🌫️ নিরপেক্ষ",
"🥳 Awesome": "🥳 অসাধারণ"
}
}
2 changes: 1 addition & 1 deletion lang/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -1283,4 +1283,4 @@
"😩 Awful": "😩 Horrible",
"😶‍🌫️ Neutral": "😶‍🌫️ Neutre",
"🥳 Awesome": "🥳 Genial"
}
}
2 changes: 1 addition & 1 deletion lang/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -1283,4 +1283,4 @@
"😩 Awful": "😩 Forfærdeligt",
"😶‍🌫️ Neutral": "😶‍🌫️ Neutral",
"🥳 Awesome": "🥳 Fantastisk"
}
}
2 changes: 1 addition & 1 deletion lang/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -1283,4 +1283,4 @@
"😩 Awful": "😩 Schrecklich",
"😶‍🌫️ Neutral": "😶‍🌫️ Neutral",
"🥳 Awesome": "🥳 Großartig"
}
}
2 changes: 1 addition & 1 deletion lang/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -1283,4 +1283,4 @@
"😩 Awful": "😩 Απαίσιο",
"😶‍🌫️ Neutral": "😶‍🌫️ Ουδέτερο",
"🥳 Awesome": "🥳 Υπέροχο"
}
}
2 changes: 1 addition & 1 deletion lang/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -1283,4 +1283,4 @@
"😩 Awful": "😩 Horrible",
"😶‍🌫️ Neutral": "😶‍🌫️ Neutro",
"🥳 Awesome": "🥳 Impresionante"
}
}
2 changes: 1 addition & 1 deletion lang/he.json
Original file line number Diff line number Diff line change
Expand Up @@ -1283,4 +1283,4 @@
"😩 Awful": "😩 נורא",
"😶‍🌫️ Neutral": "😶‍🌫️ ניטרלי",
"🥳 Awesome": "🥳 מדהים"
}
}
2 changes: 1 addition & 1 deletion lang/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1283,4 +1283,4 @@
"😩 Awful": "😩 भयानक",
"😶‍🌫️ Neutral": "😶‍🌫️ तटस्थ",
"🥳 Awesome": "🥳 बहुत बढ़िया"
}
}
2 changes: 1 addition & 1 deletion lang/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -1283,4 +1283,4 @@
"😩 Awful": "😩 Terribile",
"😶‍🌫️ Neutral": "😶‍🌫️ Neutrale",
"🥳 Awesome": "🥳 Fantastico"
}
}
2 changes: 1 addition & 1 deletion lang/ml.json
Original file line number Diff line number Diff line change
Expand Up @@ -1284,4 +1284,4 @@
"😩 Awful": "😩 ഭയങ്കരം",
"😶‍🌫️ Neutral": "😶‍🌫️ ന്യൂട്രൽ",
"🥳 Awesome": "🥳 ഗംഭീരം"
}
}
4 changes: 2 additions & 2 deletions lang/ml/pagination.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

return [
'next' => 'തുടരുക ',
'previous' => 'പിന്തുണ ❮',
'next' => 'തുടരുക ',
'previous' => '❮ പിന്തുണ',
];
152 changes: 75 additions & 77 deletions lang/ml/validation.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

return [
'accepted' => 'The :attribute must be accepted.',
'accepted_if' => 'The :attribute must be accepted when :other is :value.',
Expand All @@ -13,6 +11,79 @@
'alpha_num' => 'The :attribute may only contain letters and numbers.',
'array' => 'The :attribute must be an array.',
'ascii' => 'The :attribute field must only contain single-byte alphanumeric characters and symbols.',
'attributes' => [
'address' => 'address',
'age' => 'age',
'amount' => 'amount',
'area' => 'area',
'available' => 'available',
'birthday' => 'birthday',
'body' => 'body',
'city' => 'city',
'content' => 'content',
'country' => 'country',
'created_at' => 'created at',
'creator' => 'creator',
'current_password' => 'current password',
'date' => 'date',
'date_of_birth' => 'date of birth',
'day' => 'day',
'deleted_at' => 'deleted at',
'description' => 'description',
'district' => 'district',
'duration' => 'duration',
'email' => 'email',
'excerpt' => 'excerpt',
'filter' => 'filter',
'first_name' => 'first name',
'gender' => 'gender',
'group' => 'group',
'hour' => 'hour',
'image' => 'image',
'last_name' => 'last name',
'lesson' => 'lesson',
'line_address_1' => 'line address 1',
'line_address_2' => 'line address 2',
'message' => 'message',
'middle_name' => 'middle name',
'minute' => 'minute',
'mobile' => 'mobile',
'month' => 'month',
'name' => 'name',
'national_code' => 'national code',
'number' => 'number',
'password' => 'password',
'password_confirmation' => 'password confirmation',
'phone' => 'phone',
'photo' => 'photo',
'postal_code' => 'postal code',
'price' => 'price',
'province' => 'province',
'recaptcha_response_field' => 'recaptcha response field',
'remember' => 'remember',
'restored_at' => 'restored at',
'result_text_under_image' => 'result text under image',
'role' => 'role',
'second' => 'second',
'sex' => 'sex',
'short_text' => 'short text',
'size' => 'size',
'state' => 'state',
'street' => 'street',
'student' => 'student',
'subject' => 'subject',
'teacher' => 'teacher',
'terms' => 'terms',
'test_description' => 'test description',
'test_locale' => 'test locale',
'test_name' => 'test name',
'text' => 'text',
'time' => 'time',
'title' => 'title',
'updated_at' => 'updated at',
'username' => 'username',
'year' => 'year',
],
'before' => 'The :attribute must be a date before :date.',
'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
'between' => [
Expand Down Expand Up @@ -58,8 +129,8 @@
],
'image' => 'The :attribute must be an image.',
'in' => 'The selected :attribute is invalid.',
'in_array' => 'The :attribute field does not exist in :other.',
'integer' => 'The :attribute must be an integer.',
'in_array' => 'The :attribute field does not exist in :other.',
'ip' => 'The :attribute must be a valid IP address.',
'ipv4' => 'The :attribute must be a valid IPv4 address.',
'ipv6' => 'The :attribute must be a valid IPv6 address.',
Expand Down Expand Up @@ -122,9 +193,9 @@
'required_if_accepted' => 'The :attribute field is required when :other is accepted.',
'required_unless' => 'The :attribute field is required unless :other is in :values.',
'required_with' => 'The :attribute field is required when :values is present.',
'required_with_all' => 'The :attribute field is required when :values is present.',
'required_without' => 'The :attribute field is required when :values is not present.',
'required_without_all' => 'The :attribute field is required when none of :values are present.',
'required_with_all' => 'The :attribute field is required when :values is present.',
'same' => 'The :attribute and :other must match.',
'size' => [
'array' => 'The :attribute must contain :size items.',
Expand All @@ -141,77 +212,4 @@
'uppercase' => 'The :attribute field must be uppercase.',
'url' => 'The :attribute format is invalid.',
'uuid' => 'The :attribute must be a valid UUID.',
'attributes' => [
'address' => 'address',
'age' => 'age',
'amount' => 'amount',
'area' => 'area',
'available' => 'available',
'birthday' => 'birthday',
'body' => 'body',
'city' => 'city',
'content' => 'content',
'country' => 'country',
'created_at' => 'created at',
'creator' => 'creator',
'current_password' => 'current password',
'date' => 'date',
'date_of_birth' => 'date of birth',
'day' => 'day',
'deleted_at' => 'deleted at',
'description' => 'description',
'district' => 'district',
'duration' => 'duration',
'email' => 'email',
'excerpt' => 'excerpt',
'filter' => 'filter',
'first_name' => 'first name',
'gender' => 'gender',
'group' => 'group',
'hour' => 'hour',
'image' => 'image',
'last_name' => 'last name',
'lesson' => 'lesson',
'line_address_1' => 'line address 1',
'line_address_2' => 'line address 2',
'message' => 'message',
'middle_name' => 'middle name',
'minute' => 'minute',
'mobile' => 'mobile',
'month' => 'month',
'name' => 'name',
'national_code' => 'national code',
'number' => 'number',
'password' => 'password',
'password_confirmation' => 'password confirmation',
'phone' => 'phone',
'photo' => 'photo',
'postal_code' => 'postal code',
'price' => 'price',
'province' => 'province',
'recaptcha_response_field' => 'recaptcha response field',
'remember' => 'remember',
'restored_at' => 'restored at',
'result_text_under_image' => 'result text under image',
'role' => 'role',
'second' => 'second',
'sex' => 'sex',
'short_text' => 'short text',
'size' => 'size',
'state' => 'state',
'street' => 'street',
'student' => 'student',
'subject' => 'subject',
'teacher' => 'teacher',
'terms' => 'terms',
'test_description' => 'test description',
'test_locale' => 'test locale',
'test_name' => 'test name',
'text' => 'text',
'time' => 'time',
'title' => 'title',
'updated_at' => 'updated at',
'username' => 'username',
'year' => 'year',
],
];
2 changes: 1 addition & 1 deletion lang/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -1283,4 +1283,4 @@
"😩 Awful": "😩 Verschrikkelijk",
"😶‍🌫️ Neutral": "😶‍🌫️ Neutraal",
"🥳 Awesome": "🥳 Geweldig"
}
}
2 changes: 1 addition & 1 deletion lang/nn.json
Original file line number Diff line number Diff line change
Expand Up @@ -1283,4 +1283,4 @@
"😩 Awful": "😩 Forferdelig",
"😶‍🌫️ Neutral": "😶‍🌫️ Nøytral",
"🥳 Awesome": "🥳 Fantastisk"
}
}
2 changes: 0 additions & 2 deletions lang/pa/http-statuses.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

return [
'0' => 'Unknown Error',
'100' => 'Continue',
Expand Down
2 changes: 0 additions & 2 deletions lang/pa/passwords.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

return [
'reset' => 'Your password has been reset.',
'sent' => 'We have emailed your password reset link.',
Expand Down
Loading

0 comments on commit 9f7e388

Please sign in to comment.