Skip to content

Commit c94977d

Browse files
Added information about laravel-lang/native-locale-names
1 parent e988c78 commit c94977d

File tree

8 files changed

+128
-2
lines changed

8 files changed

+128
-2
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,32 +48,38 @@ jobs:
4848
rm -rf docs/statuses/attributes
4949
rm -rf docs/statuses/http-statuses
5050
rm -rf docs/statuses/lang
51+
rm -rf docs/statuses/native-locale-names
5152
5253
mkdir docs/statuses/attributes
5354
mkdir docs/statuses/http-statuses
5455
mkdir docs/statuses/lang
56+
mkdir docs/statuses/native-locale-names
5557
5658
- name: Download repositories
5759
run: |
5860
git clone --no-tags --single-branch https://github.com/Laravel-Lang/attributes.git tmp/attributes
5961
git clone --no-tags --single-branch https://github.com/Laravel-Lang/http-statuses.git tmp/http-statuses
6062
git clone --no-tags --single-branch https://github.com/Laravel-Lang/lang.git tmp/lang
63+
git clone --no-tags --single-branch https://github.com/Laravel-Lang/native-locale-names.git tmp/native-locale-names
6164
6265
- name: Move translation statuses
6366
run: |
6467
mv -f tmp/attributes/docs/status.md docs/statuses/attributes/index.md
6568
mv -f tmp/http-statuses/docs/status.md docs/statuses/http-statuses/index.md
6669
mv -f tmp/lang/docs/status.md docs/statuses/lang/index.md
70+
mv -f tmp/native-locale-names/docs/status.md docs/statuses/native-locale-names/index.md
6771
6872
mv -f tmp/attributes/docs/statuses docs/statuses/attributes/statuses
6973
mv -f tmp/http-statuses/docs/statuses docs/statuses/http-statuses/statuses
7074
mv -f tmp/lang/docs/statuses docs/statuses/lang/statuses
75+
mv -f tmp/native-locale-names/docs/statuses docs/statuses/native-locale-names/statuses
7176
7277
- name: Resolve page names
7378
run: |
7479
sed -i 's/# Completion Status/# Completion Status: Attributes/g' docs/statuses/attributes/index.md
7580
sed -i 's/# Completion Status/# Completion Status: HTTP Statuses/g' docs/statuses/http-statuses/index.md
7681
sed -i 's/# Completion Status/# Completion Status: Lang/g' docs/statuses/lang/index.md
82+
sed -i 's/# Completion Status/# Completion Status: Native Locale Names/g' docs/statuses/native-locale-names/index.md
7783
7884
- name: Build VuePress site
7985
run: npm run build

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"laravel-lang/http-statuses": "^3.5.0",
5353
"laravel-lang/lang": "^13.3.0",
5454
"laravel-lang/locales": "^1.6",
55+
"laravel-lang/native-locale-names": "^1.0",
5556
"laravel-lang/publisher": "^15.0"
5657
},
5758
"require-dev": {

docs/.vuepress/config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ module.exports = {
5555
{text: 'Lang', link: '/statuses/lang/index.md'},
5656
{text: 'Attributes', link: '/statuses/attributes/index.md'},
5757
{text: 'HTTP Statuses', link: '/statuses/http-statuses/index.md'},
58+
{text: 'Native Locale Names', link: '/statuses/native-locale-names/index.md'},
5859
]
5960
},
6061
],
@@ -133,9 +134,10 @@ module.exports = {
133134
{
134135
text: 'Features',
135136
children: [
136-
'/usage/features/alignment.md',
137137
'/usage/features/facades.md',
138-
'/usage/features/smart-punctuation.md'
138+
'/usage/features/native-locale-names.md',
139+
'/usage/features/alignment.md',
140+
'/usage/features/smart-punctuation.md',
139141
]
140142
}
141143
]

docs/installation/about.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,9 @@ For example, when you call `__('Remember Me')`, you get `Remember Me` instead of
7575
fallback language.
7676

7777
This package solves this problem.
78+
79+
## `laravel-lang/native-locale-names`
80+
81+
This package contains a list of localized language names.
82+
83+
I think there is no need to explain why it can be useful 🙂
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: Native Locale Names
3+
---
4+
5+
# Compatibility: Native Locale Names
6+
7+
| PHP | Laravel Lang: Locales | Package Version | Status |
8+
|----------|-----------------------|-----------------|-------------------------------|
9+
| 8.1, 8.2 | `^1.6` | `^1.0` | ![Supported][badge_supported] |
10+
11+
[badge_not_supported]: https://img.shields.io/badge/not%20supported-lightgrey?style=flat-square
12+
13+
[badge_supported]: https://img.shields.io/badge/supported-green?style=flat-square

docs/installation/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,5 @@ composer require --dev laravel-lang/attributes
4141
composer require --dev laravel-lang/http-statuses
4242
4343
composer require laravel-lang/locales
44+
composer require laravel-lang/native-locale-names
4445
```

docs/statuses/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
* [Lang](lang/index.md)
44
* [Attributes](attributes/index.md)
55
* [HTTP Statuses](http-statuses/index.md)
6+
* [Native Locale Names](native-locale-names/index.md)
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# Native Locale Names
2+
3+
If you want to get a localized list of languages, then simply call the `Native::get()` method from
4+
the [`laravel-lang/native-locale-names`](../../installation/index.md) package:
5+
6+
```php
7+
use LaravelLang\NativeLocaleNames\Native;
8+
9+
return Native::get('bn');
10+
```
11+
12+
Result:
13+
14+
```php
15+
array:79 [
16+
"af" => "আফ্রিকান"
17+
"ar" => "আরবি"
18+
"az" => "আজারবাইজানীয় (ল্যাটিন)"
19+
"be" => "বেলারুশিয়ান"
20+
"bg" => "বুলগেরিয়ান"
21+
"bn" => "বাংলা"
22+
"bs" => "বসনিয়ান"
23+
"ca" => "কাতালান"
24+
"cs" => "চেক"
25+
"cy" => "ওয়েলশ"
26+
"da" => "ড্যানিশ"
27+
"de" => "জার্মান"
28+
"de_CH" => "সুইস হাই জার্মান"
29+
"el" => "গ্রীক"
30+
"en" => "ইংরেজি"
31+
"es" => "স্পেনীয়"
32+
"et" => "এস্তোনিয়ান"
33+
"eu" => "বাস্ক"
34+
"fa" => "ফার্সি"
35+
"fi" => "ফিনিশ"
36+
"fil" => "ফিলিপিনো"
37+
"fr" => "ফরাসি"
38+
"gl" => "গ্যালিসিয়ান"
39+
"gu" => "গুজরাটি"
40+
"he" => "হিব্রু"
41+
"hi" => "হিন্দি"
42+
"hr" => "ক্রোয়েশিয়ান"
43+
"hu" => "হাঙ্গেরিয়ান"
44+
"hy" => "আর্মেনিয়ান"
45+
"id" => "ইন্দোনেশিয়ান"
46+
"is" => "আইসল্যান্ডিক"
47+
"it" => "ইতালীয়"
48+
"ja" => "জাপানিজ"
49+
"ka" => "জর্জিয়ান"
50+
"kk" => "কাজাখ"
51+
"km" => "খমের"
52+
"kn" => "কন্নড়"
53+
"ko" => "কোরিয়ান"
54+
"lt" => "লিথুয়ানিয়ান"
55+
"lv" => "লাটভিয়ান"
56+
"mk" => "ম্যাসেডোনিয়ান"
57+
"mn" => "মঙ্গোলিয়ান"
58+
"mr" => "মারাঠি"
59+
"ms" => "মলয়"
60+
"nb" => "নরওয়েজিয়ান বোকমাল"
61+
"ne" => "নেপালি"
62+
"nl" => "ডাচ"
63+
"nn" => "নরওয়েজিয়ান নাইনরস্ক"
64+
"oc" => "অক্সিটান"
65+
"pl" => "পোলিশ"
66+
"ps" => "পশতু"
67+
"pt" => "পর্তুগীজ"
68+
"pt_BR" => "ব্রাজিলীয় পর্তুগীজ"
69+
"ro" => "রোমানিয়ান"
70+
"ru" => "রাশিয়ান"
71+
"sc" => "সার্ডিনিয়ান"
72+
"si" => "সিংহল"
73+
"sk" => "স্লোভাক"
74+
"sl" => "স্লোভেন"
75+
"sq" => "আলবেনিয়ান"
76+
"sr_Cyrl" => "সার্বিয়ান (সিরিলিক)"
77+
"sr_Latn" => "সার্বিয়ান (ল্যাটিন)"
78+
"sr_Latn_ME" => "সার্বিয়ান (মন্টিনিগ্রো)"
79+
"sv" => "সুইডিশ"
80+
"sw" => "সোয়াহিলি"
81+
"tg" => "তাজিক (সিরিলিক)"
82+
"th" => "থাই"
83+
"tk" => "তুর্কমেন"
84+
"tl" => "তাগালগ"
85+
"tr" => "তুর্কি"
86+
"ug" => "উইঘুর"
87+
"uk" => "ইউক্রেনীয়"
88+
"ur" => "উর্দু"
89+
"uz_Cyrl" => "উজবেক (সিরিলিক)"
90+
"uz_Latn" => "উজবেক (ল্যাটিন)"
91+
"vi" => "ভিয়েতনামী"
92+
"zh_CN" => "সরলীকৃত চীনা)"
93+
"zh_HK" => "চীনা (হংকং)"
94+
"zh_TW" => "চীনা (তাইওয়ান)"
95+
]
96+
```

0 commit comments

Comments
 (0)