diff --git a/Localization/app.json b/Localization/app.json index 72a4358a6..b66861a72 100644 --- a/Localization/app.json +++ b/Localization/app.json @@ -387,6 +387,10 @@ "register": { "title": "Create Account", "input": { + "birth_date": { + "label": "Date of Birth", + "explanation_message": "We have to make sure you're at least %d to join %@. This won't get stored after signup." + }, "avatar": { "delete": "Delete" }, diff --git a/MastodonSDK/Sources/MastodonLocalization/Generated/Strings.swift b/MastodonSDK/Sources/MastodonLocalization/Generated/Strings.swift index 605dd6ba1..f39e953f1 100644 --- a/MastodonSDK/Sources/MastodonLocalization/Generated/Strings.swift +++ b/MastodonSDK/Sources/MastodonLocalization/Generated/Strings.swift @@ -1356,6 +1356,14 @@ public enum L10n { /// Delete public static let delete = L10n.tr("Localizable", "Scene.Register.Input.Avatar.Delete", fallback: "Delete") } + public enum BirthDate { + /// We have to make sure you're at least %d to join %@. This won't get stored after signup. + public static func explanationMessage(_ p1: Int, _ p2: Any) -> String { + return L10n.tr("Localizable", "Scene.Register.Input.BirthDate.ExplanationMessage", p1, String(describing: p2), fallback: "We have to make sure you're at least %d to join %@. This won't get stored after signup.") + } + /// Date of Birth + public static let label = L10n.tr("Localizable", "Scene.Register.Input.BirthDate.Label", fallback: "Date of Birth") + } public enum DisplayName { /// display name public static let placeholder = L10n.tr("Localizable", "Scene.Register.Input.DisplayName.Placeholder", fallback: "display name") diff --git a/MastodonSDK/Sources/MastodonLocalization/Resources/Base.lproj/Localizable.strings b/MastodonSDK/Sources/MastodonLocalization/Resources/Base.lproj/Localizable.strings index 4a699e3c9..cb9fc92c6 100644 --- a/MastodonSDK/Sources/MastodonLocalization/Resources/Base.lproj/Localizable.strings +++ b/MastodonSDK/Sources/MastodonLocalization/Resources/Base.lproj/Localizable.strings @@ -466,6 +466,8 @@ If you disagree with the policy for **%@**, you can go back and pick a different "Scene.Register.Error.Special.PasswordTooShort" = "Password is too short (must be at least 8 characters)"; "Scene.Register.Error.Special.UsernameInvalid" = "Username must only contain alphanumeric characters and underscores"; "Scene.Register.Error.Special.UsernameTooLong" = "Username is too long (can’t be longer than 30 characters)"; +"Scene.Register.Input.BirthDate.Label" = "Date of Birth"; +"Scene.Register.Input.BirthDate.ExplanationMessage" = "We have to make sure you're at least %d to join %@. This won't get stored after signup."; "Scene.Register.Input.Avatar.Delete" = "Delete"; "Scene.Register.Input.DisplayName.Placeholder" = "display name"; "Scene.Register.Input.Email.Placeholder" = "email"; @@ -679,4 +681,4 @@ If you disagree with the policy for **%@**, you can go back and pick a different "Widget.MultipleFollowers.ConfigurationDescription" = "Show number of followers for multiple accounts."; "Widget.MultipleFollowers.ConfigurationDisplayName" = "Multiple followers"; "Widget.MultipleFollowers.MockUser.AccountName" = "another@follower.social"; -"Widget.MultipleFollowers.MockUser.DisplayName" = "Another follower"; \ No newline at end of file +"Widget.MultipleFollowers.MockUser.DisplayName" = "Another follower";