Localize everything that isn't already localized #27
3 changed files with 15 additions and 5 deletions
|
|
@ -36,9 +36,15 @@
|
||||||
"Key": "Key",
|
"Key": "Key",
|
||||||
"Value": "Value",
|
"Value": "Value",
|
||||||
"no-data-submitted": "No data submitted",
|
"no-data-submitted": "No data submitted",
|
||||||
"data-query-notif-header": "Data Query Notification"
|
"data-query-notif-header": "Data Query Notification",
|
||||||
|
"cancel": "Cancel",
|
||||||
|
"confirm-and-close": "Confirm and Close"
|
||||||
},
|
},
|
||||||
"Apps": {
|
"Apps": {
|
||||||
|
"Ask": {
|
||||||
|
"title": "Questions",
|
||||||
|
"invalid-input-type": "Invalid input type provided: {type}"
|
||||||
|
},
|
||||||
"QueryStatus": {
|
"QueryStatus": {
|
||||||
"title": "Information Request Status",
|
"title": "Information Request Status",
|
||||||
"user-disconnected-tooltip": "This user is not logged in to Foundry",
|
"user-disconnected-tooltip": "This user is not logged in to Foundry",
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
import { __ID__, filePath } from "../consts.mjs";
|
import { __ID__, filePath } from "../consts.mjs";
|
||||||
|
import { localizer } from "../utils/localizer.mjs";
|
||||||
|
|
||||||
const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api;
|
const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api;
|
||||||
|
|
||||||
|
|
@ -24,7 +25,7 @@ export class Ask extends HandlebarsApplicationMixin(ApplicationV2) {
|
||||||
width: 330,
|
width: 330,
|
||||||
},
|
},
|
||||||
window: {
|
window: {
|
||||||
title: `Questions`,
|
title: `taf.Apps.Ask.title`,
|
||||||
resizable: true,
|
resizable: true,
|
||||||
minimizable: true,
|
minimizable: true,
|
||||||
contentTag: `form`,
|
contentTag: `form`,
|
||||||
|
|
@ -80,7 +81,10 @@ export class Ask extends HandlebarsApplicationMixin(ApplicationV2) {
|
||||||
|
|
||||||
for (const input of inputs) {
|
for (const input of inputs) {
|
||||||
if (!validInputTypes.includes(input.type)) {
|
if (!validInputTypes.includes(input.type)) {
|
||||||
input.details = `Invalid input type provided: ${input.type}`;
|
input.details = localizer(
|
||||||
|
`taf.Apps.Ask.invalid-input-type`,
|
||||||
|
{ type: input.type },
|
||||||
|
);
|
||||||
input.type = `error`;
|
input.type = `error`;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,11 @@
|
||||||
type="button"
|
type="button"
|
||||||
data-action="cancel"
|
data-action="cancel"
|
||||||
>
|
>
|
||||||
Cancel
|
{{localize "taf.misc.cancel"}}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
>
|
>
|
||||||
Confirm and Close
|
{{localize "taf.misc.confirm-and-close"}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue