You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The string parser supports common formats such as `Max Mustermann` and `Mustermann, Max`. For single-part names, parsing returns `null` by default because the result is incomplete.
120
+
121
+
If incomplete names are acceptable for your use case, enable them explicitly:
For `GermanTypeName`, the array parser supports English keys (`firstname`, `lastname`, `name`) and German keys (`vorname`, `nachname`, `zuname`, `name`). Non-string values are ignored.
148
+
102
149
## Translations / Translation files
103
150
104
151
Since this library in framework-agnostic, you need to register the translation files manually or copy them to your project's translation directory.
@@ -196,6 +243,11 @@ The following parameters are available in translations:
196
243
197
244
- `GermanTypeName`: German names with first and last name
198
245
246
+
### Name Parser Classes
247
+
248
+
- `StringParser`: Parses full names from plain strings
249
+
- `ArrayParser`: Parses first and last names from array data
250
+
199
251
### Gender
200
252
201
253
- `Gender::MALE`- Male
@@ -310,4 +362,4 @@ class IcelandTypeName extends AbstractName
0 commit comments