Skip to content

Commit 27b0349

Browse files
authored
Improve readme + Update doc links (#64)
1 parent fffecc9 commit 27b0349

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,20 @@
1717

1818
The package provides common internationalization utilities:
1919

20-
- `Locale` stores locale information created from BCP 47 formatted string.
21-
It can parse locale string, modify locale parts,
22-
form locale string from parts, and derive fallback locale.
20+
- `Locale` stores locale information created from [BCP 47](https://www.rfc-editor.org/info/bcp47) formatted string. It
21+
can parse locale string, modify locale parts, form locale string from parts, and derive fallback locale.
2322
- `LocaleProvider` is a stateful service that stores current locale.
2423

2524
## Requirements
2625

27-
- PHP 7.4 or higher.
26+
- PHP 8.0 or higher.
2827

2928
## Installation
3029

3130
The package could be installed with composer:
3231

3332
```shell
34-
composer install yiisoft/i18n --prefer-dist
33+
composer install yiisoft/i18n
3534
```
3635

3736
## General usage

src/Locale.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* Locale stores locale information created from BCP 47 formatted string.
1111
*
12-
* @link https://tools.ietf.org/html/bcp47
12+
* @link https://www.rfc-editor.org/info/bcp47
1313
*/
1414
final class Locale implements \Stringable
1515
{
@@ -107,7 +107,7 @@ final class Locale implements \Stringable
107107
*
108108
* @param string $localeString BCP 47 formatted locale string.
109109
*
110-
* @link https://tools.ietf.org/html/bcp47
110+
* @link https://www.rfc-editor.org/info/bcp47
111111
*
112112
* @throws InvalidArgumentException
113113
*/
@@ -444,7 +444,7 @@ public function withPrivate(?string $private): self
444444
}
445445

446446
/**
447-
* @link https://tools.ietf.org/html/bcp47
447+
* @link https://www.rfc-editor.org/info/bcp47
448448
*
449449
* @return string Regular expression for parsing BCP 47.
450450
* @psalm-return non-empty-string

0 commit comments

Comments
 (0)