Skip to content

Commit

Permalink
Removed symfony/yaml dependency (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
norberttech authored Jan 25, 2025
1 parent a7ef126 commit f70d3a9
Show file tree
Hide file tree
Showing 88 changed files with 1,306 additions and 1,090 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
],
"require": {
"php": "~8.2 || ~8.3 || ~8.4",
"symfony/translation": "~5.4||~6.4||~7",
"symfony/yaml": "~5.4||~6.4||~7"
"symfony/translation": "~5.4||~6.4||~7"
},
"require-dev": {
"thunderer/shortcode": "^0.7",
Expand Down
153 changes: 1 addition & 152 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 47 additions & 0 deletions src/Coduo/PHPHumanizer/Resources/translations/difference.af.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php declare(strict_types=1);

return [
'just_now' => [
'past' => '[0,Inf] nou nou',
'future' => '[0,Inf] netnou',
],
'second' => [
'past' => '[0,1] %count% sekonde gelede|[2,Inf] %count% sekondes gelede',
'future' => '[0,1] %count% sekonde van nou af|[2,Inf] %count% sekondes van nou af',
],
'minute' => [
'past' => '{1} %count% minuut gelede|[2,Inf] %count% minute gelede',
'future' => '{1} %count% minuut van nou af|[2,Inf] %count% minute van nou af',
],
'hour' => [
'past' => '{1} %count% uur gelede|[2,Inf] %count% ure gelede',
'future' => '{1} %count% uur van nou af|[2,Inf] %count% ure van nou af',
],
'day' => [
'past' => '{1} %count% dag gelede|[2,Inf] %count% dae gelede',
'future' => '{1} %count% dag van nou af|[2,Inf] %count% dae van nou af',
],
'week' => [
'past' => '{1} %count% week gelede|[2,Inf] %count% weke gelede',
'future' => '{1} %count% week van nou af|[2,Inf] %count% weke van nou af',
],
'month' => [
'past' => '{1} %count% maand gelede|[2,Inf] %count% maande gelede',
'future' => '{1} %count% maand van nou af|[2,Inf] %count% maande van nou af',
],
'year' => [
'past' => '{1} %count% jaar gelede|[2,Inf] %count% jaar gelede',
'future' => '{1} %count% jaar van nou af|[2,Inf] %count% jaar van nou af',
],
'compound' => [
'second' => '[0,1] %count% sekonde|[2,Inf] %count% sekondes',
'minute' => '{1} %count% minuut|[2,Inf] %count% minute',
'hour' => '{1} %count% uur|[2,Inf] %count% ure',
'day' => '{1} %count% dag|[2,Inf] %count% dae',
'week' => '{1} %count% week|[2,Inf] %count% weke',
'month' => '{1} %count% maand|[2,Inf] %count% maande',
'year' => '{1} %count% jaar|[2,Inf] %count% jaar',
'past' => '%value% gelede',
'future' => '%value% van nou af',
],
];
35 changes: 0 additions & 35 deletions src/Coduo/PHPHumanizer/Resources/translations/difference.af.yml

This file was deleted.

47 changes: 47 additions & 0 deletions src/Coduo/PHPHumanizer/Resources/translations/difference.az.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php declare(strict_types=1);

return [
'just_now' => [
'past' => '[0,Inf] indi',
'future' => '[0,Inf] indi',
],
'second' => [
'past' => '[0,1] %count% saniyə əvvəl|[2,Inf] %count% saniyə əvvəl',
'future' => '[0,1] %count% saniyə sonra|[2,Inf] %count% saniyə sonra',
],
'minute' => [
'past' => '{1} %count% dəqiqə əvvəl|[2,Inf] %count% dəqiqə əvvəl',
'future' => '{1} %count% dəqiqə sonra|[2,Inf] %count% dəqiqə sonra',
],
'hour' => [
'past' => '{1} %count% saat əvvəl|[2,Inf] %count% saat əvvəl',
'future' => '{1} %count% saat sonra|[2,Inf] %count% saat sonra',
],
'day' => [
'past' => '{1} %count% gün əvvəl|[2,Inf] %count% gün əvvəl',
'future' => '{1} %count% gün sonra|[2,Inf] %count% gün sonra',
],
'week' => [
'past' => '{1} %count% həftə əvvəl|[2,Inf] %count% həftə əvvəl',
'future' => '{1} %count% həftə sonra|[2,Inf] %count% həftə sonra',
],
'month' => [
'past' => '{1} %count% ay əvvəl|[2,Inf] %count% ay əvvəl',
'future' => '{1} %count% ay sonra|[2,Inf] %count% ay sonra',
],
'year' => [
'past' => '{1} %count% il əvvəl|[2,Inf] %count% il əvvəl',
'future' => '{1} %count% il sonra|[2,Inf] %count% il sonra',
],
'compound' => [
'second' => '[0,1] %count% saniyə|[2,Inf] %count% saniyə',
'minute' => '{1} %count% dəqiqə|[2,Inf] %count% dəqiqə',
'hour' => '{1} %count% saat|[2,Inf] %count% saat',
'day' => '{1} %count% gün|[2,Inf] %count% gün',
'week' => '{1} %count% həftə|[2,Inf] %count% həftə',
'month' => '{1} %count% ay|[2,Inf] %count% ay',
'year' => '{1} %count% il|[2,Inf] %count% il',
'past' => '%value% əvvəl',
'future' => '%value% sonra',
],
];
35 changes: 0 additions & 35 deletions src/Coduo/PHPHumanizer/Resources/translations/difference.az.yml

This file was deleted.

47 changes: 47 additions & 0 deletions src/Coduo/PHPHumanizer/Resources/translations/difference.bg.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php declare(strict_types=1);

return [
'just_now' => [
'past' => '[0,Inf] в момента',
'future' => '[0,Inf] в момента',
],
'second' => [
'past' => '[0,1] преди %count% секунда|[2,Inf] преди %count% секунди',
'future' => '[0,1] след %count% секунда|[2,Inf] след %count% секунди',
],
'minute' => [
'past' => '{1} преди %count% минута|[2,Inf] преди %count% минути',
'future' => '{1} след %count% минута|[2,Inf] след %count% минути',
],
'hour' => [
'past' => '{1} преди %count% час|[2,Inf] преди %count% часа',
'future' => '{1} след %count% час|[2,Inf] след %count% часа',
],
'day' => [
'past' => '{1} преди %count% ден|[2,Inf] преди %count% дни',
'future' => '{1} след %count% ден|[2,Inf] след %count% дни',
],
'week' => [
'past' => '{1} преди %count% седмица|[2,Inf] преди %count% седмици',
'future' => '{1} след %count% седмица|[2,Inf] след %count% седмици',
],
'month' => [
'past' => '{1} преди %count% месец|[2,Inf] преди %count% месеца',
'future' => '{1} след %count% месец|[2,Inf] след %count% месеца',
],
'year' => [
'past' => '{1} преди %count% година|[2,Inf] преди %count% години',
'future' => '{1} след %count% година|[2,Inf] след %count% години',
],
'compound' => [
'second' => '[0,1] %count% секунда|[2,Inf] %count% секунди',
'minute' => '{1} %count% минута|[2,Inf] %count% минути',
'hour' => '{1} %count% час|[2,Inf] %count% часа',
'day' => '{1} %count% ден|[2,Inf] %count% дни',
'week' => '{1} %count% седмица|[2,Inf] %count% седмица',
'month' => '{1} %count% месец|[2,Inf] %count% месеца',
'year' => '{1} %count% година|[2,Inf] %count% години',
'past' => '%value% преди това',
'future' => '%value% след това',
],
];
Loading

0 comments on commit f70d3a9

Please sign in to comment.