@wordpress/i18n 4.29.0 → 4.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/README.md +6 -14
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -79,10 +79,7 @@ _Returns_
|
|
|
79
79
|
|
|
80
80
|
Check if current locale is RTL.
|
|
81
81
|
|
|
82
|
-
**RTL (Right To Left)** is a locale property indicating that text is written from right to left.
|
|
83
|
-
For example, the `he` locale (for Hebrew) specifies right-to-left. Arabic (ar) is another common
|
|
84
|
-
language written RTL. The opposite of RTL, LTR (Left To Right) is used in other languages,
|
|
85
|
-
including English (`en`, `en-US`, `en-GB`, etc.), Spanish (`es`), and French (`fr`).
|
|
82
|
+
**RTL (Right To Left)** is a locale property indicating that text is written from right to left. For example, the `he` locale (for Hebrew) specifies right-to-left. Arabic (ar) is another common language written RTL. The opposite of RTL, LTR (Left To Right) is used in other languages, including English (`en`, `en-US`, `en-GB`, etc.), Spanish (`es`), and French (`fr`).
|
|
86
83
|
|
|
87
84
|
_Returns_
|
|
88
85
|
|
|
@@ -90,8 +87,7 @@ _Returns_
|
|
|
90
87
|
|
|
91
88
|
### resetLocaleData
|
|
92
89
|
|
|
93
|
-
Resets all current Tannin instance locale data and sets the specified
|
|
94
|
-
locale data for the domain. Accepts data in a Jed-formatted JSON object shape.
|
|
90
|
+
Resets all current Tannin instance locale data and sets the specified locale data for the domain. Accepts data in a Jed-formatted JSON object shape.
|
|
95
91
|
|
|
96
92
|
_Related_
|
|
97
93
|
|
|
@@ -104,8 +100,7 @@ _Parameters_
|
|
|
104
100
|
|
|
105
101
|
### setLocaleData
|
|
106
102
|
|
|
107
|
-
Merges locale data into the Tannin instance by domain. Accepts data in a
|
|
108
|
-
Jed-formatted JSON object shape.
|
|
103
|
+
Merges locale data into the Tannin instance by domain. Accepts data in a Jed-formatted JSON object shape.
|
|
109
104
|
|
|
110
105
|
_Related_
|
|
111
106
|
|
|
@@ -118,8 +113,7 @@ _Parameters_
|
|
|
118
113
|
|
|
119
114
|
### sprintf
|
|
120
115
|
|
|
121
|
-
Returns a formatted string. If an error occurs in applying the format, the
|
|
122
|
-
original format string is returned.
|
|
116
|
+
Returns a formatted string. If an error occurs in applying the format, the original format string is returned.
|
|
123
117
|
|
|
124
118
|
_Related_
|
|
125
119
|
|
|
@@ -148,8 +142,7 @@ _Returns_
|
|
|
148
142
|
|
|
149
143
|
### \_n
|
|
150
144
|
|
|
151
|
-
Translates and retrieves the singular or plural form based on the supplied
|
|
152
|
-
number.
|
|
145
|
+
Translates and retrieves the singular or plural form based on the supplied number.
|
|
153
146
|
|
|
154
147
|
_Related_
|
|
155
148
|
|
|
@@ -168,8 +161,7 @@ _Returns_
|
|
|
168
161
|
|
|
169
162
|
### \_nx
|
|
170
163
|
|
|
171
|
-
Translates and retrieves the singular or plural form based on the supplied
|
|
172
|
-
number, with gettext context.
|
|
164
|
+
Translates and retrieves the singular or plural form based on the supplied number, with gettext context.
|
|
173
165
|
|
|
174
166
|
_Related_
|
|
175
167
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/i18n",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.31.0",
|
|
4
4
|
"description": "WordPress internationalization (i18n) library.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@babel/runtime": "^7.16.0",
|
|
33
|
-
"@wordpress/hooks": "^3.
|
|
33
|
+
"@wordpress/hooks": "^3.31.0",
|
|
34
34
|
"gettext-parser": "^1.3.1",
|
|
35
35
|
"memize": "^1.1.0",
|
|
36
36
|
"sprintf-js": "^1.1.1",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "d61700b9f1c72ba0b030fc815ef1685b4f4031ec"
|
|
43
43
|
}
|