@ -629,6 +629,12 @@ async function routes(app: FastifyInstance) {
type:'string',
minLength: 8,
maxLength: 255
},
locale:{
type:'string',
description:
'The language the wiki was being read in while this form was filled. Kept as the new account’s own language preference and used for the mail that follows. Omitted, or naming a locale this wiki has not installed, the site’s own language is used.',
maxLength: 255
}
}
},
@ -650,7 +656,8 @@ async function routes(app: FastifyInstance) {
@ -789,6 +799,12 @@ async function routes(app: FastifyInstance) {
type:'string',
format:'email',
maxLength: 255
},
locale:{
type:'string',
description:
'The language the wiki was being read in while this form was filled, used for the mail when the account has no language of its own. Omitted, or naming a locale this wiki has not installed, the site’s own language is used.',
maxLength: 255
}
}
},
@ -812,7 +828,8 @@ async function routes(app: FastifyInstance) {
@ -172,6 +172,12 @@ async function routes(app: FastifyInstance) {
type:'string',
format:'email',
maxLength: 255
},
locale:{
type:'string',
description:
'Which language to write the test in, which is how the localized templates are checked. Defaults to the site’s own language, as a mail nobody has a preference on does.',
maxLength: 255
}
}
},
@ -205,11 +211,16 @@ async function routes(app: FastifyInstance) {
'The language to be written to in, as a locale code the wiki has installed. An empty string follows the site instead. A code naming no installed locale is ignored when the mail is rendered.',
maxLength: 255
},
timezone:{
type:'string',
description:'IANA time zone name, e.g. `America/New_York`.',
@ -266,7 +268,7 @@ async function routes(app: FastifyInstance) {
schema:{
summary:"Update the logged in user's own profile",
description:
'Updates any subset of the profile fields; omitted ones are left unchanged. The name, location, job title and pronouns require profile editing to be enabled on this wiki (Administration → Authentication) and are refused otherwise; the time zone, date and time formats, appearance and colour-vision settings are the user’s own and are always accepted. The email cannot be changed here, and neither can any field an administrator owns.',
'Updates any subset of the profile fields; omitted ones are left unchanged. The name, location, job title and pronouns require profile editing to be enabled on this wiki (Administration → Authentication) and are refused otherwise; the language, time zone, date and time formats, appearance and colour-vision settings are the user’s own and are always accepted. The email cannot be changed here, and neither can any field an administrator owns.',
tags:['Users'],
body:{
$ref:'UserProfileUpdate#'
@ -337,6 +339,7 @@ async function routes(app: FastifyInstance) {
"mail.resetPwd.body":"Somebody asked to reset the password for your account on {siteName}.",
"mail.resetPwd.expiry":"This link is valid for 24 hours and can only be used once. If you did not ask for this, nothing has changed and you can ignore this message.",
"mail.resetPwd.footer":"You are receiving this because a password reset was requested for this address on {siteName}.",
"mail.resetPwd.subject":"Reset your password \u2014 {siteName}",
"mail.resetPwd.title":"Reset your password",
"mail.test.action":"Go to the wiki",
"mail.test.body":"If you are reading it, {siteName} can send mail through the SMTP server it is configured with.",
"mail.test.footer":"You are receiving this because somebody sent a test email from the Wiki.js admin area.",