From 07245c063c924488de2f73aa621d40394257e0fd Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Wed, 26 May 2021 18:02:23 -0700 Subject: [PATCH] Updated Squadrons and pilots (markdown) --- Squadrons-and-pilots.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Squadrons-and-pilots.md b/Squadrons-and-pilots.md index 85fe036..33f82ee 100644 --- a/Squadrons-and-pilots.md +++ b/Squadrons-and-pilots.md @@ -1 +1,18 @@ -[Work in progress](https://github.com/dcs-liberation/dcs_liberation/issues/276) \ No newline at end of file +**This feature is new in DCS Liberation 3.0.** + +This feature is a [aork in progress](https://github.com/dcs-liberation/dcs_liberation/issues/276). This documentation will be improve as the feature nears completion. + +## Pilot names + +Pilot names are generated randomly (user-defined names will be added later). The generated names are localized based on the `locales` field of the faction definition. For example: + +```json +{ + "name": "France and Germany", + "locales": ["fr_FR", "de_DE"], +} +``` + +Names will be localized if the chosen locale has a `faker.providers.person` listed on https://faker.readthedocs.io/en/master/locales.html. + +If the faction has no locales defined, names will be generated using `en_US` (the default for the name generator library). \ No newline at end of file