@candlerip/shared3 0.0.139 → 0.0.140

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared3",
3
- "version": "0.0.139",
3
+ "version": "0.0.140",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./src/index.js",
@@ -1,6 +1,6 @@
1
1
  export declare const DICTIONARY_CONFIG: {
2
2
  readonly 'add-person-page': {
3
- readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.add-person-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.persons-page", "pageMenu.persons-map-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "persons", "auth.cannotBeChangedLaterWarning", "auth.loginRequired", "add-person-page", "modify", "reset", "count", "dropZone.acceptedFormats", "dropZone.drapActive", "dropZone.dropZone", "dropZone.sizeLimit", "invalidImage", "tooBigImage", "image", "noMoreImages", "formDateError", "person.birthDate", "person.birthPlaceCountry", "person.deathDate", "person.description", "select", "formMaxLengthError", "proposable", "formRequiredError", "name", "add-person-page", "person-details-page", "add-person-page.maintenance.submitError", "add-person-page.maintenance.submitSuccess"];
3
+ readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.add-person-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.persons-page", "pageMenu.persons-map-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "persons", "auth.cannotBeChangedLaterWarning", "auth.loginRequired", "add-person-page", "modify", "reset", "count", "dropZone.acceptedFormats", "dropZone.drapActive", "dropZone.dropZone", "dropZone.sizeLimit", "invalidImage", "tooBigImage", "image", "noMoreImages", "form.error.date", "person.birthDate", "person.birthPlaceCountry", "person.deathDate", "person.description", "select", "form.error.maxLength", "proposable", "form.error.required", "name", "add-person-page", "person-details-page", "add-person-page.maintenance.submitError", "add-person-page.maintenance.submitSuccess"];
4
4
  };
5
5
  readonly 'candle-details-page': {
6
6
  readonly translationIds: readonly ["auth.loginRequired", "acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.add-person-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.persons-page", "pageMenu.persons-map-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "person-candles-page", "imageCannotBeLoaded", "burnsSoFar", "burnedOutCandle", "candle.description", "litName", "candle-details-page.deleteCandle.submitError", "candle-details-page.deleteCandle.submitSuccess", "candle-details-page.deleteCandle.question", "candle-details-page.deleteCandle", "candle-details-page.myCandle.submitError", "candle-details-page.myCandle.submitSuccess", "candle-details-page.myCandle.loginRequired", "candle-details-page.myCandle.question", "candle-details-page.myCandle", "candle-details-page.relightCandle.submitError", "candle-details-page.relightCandle.submitSuccess", "candle-details-page.relightCandle.question", "candle-details-page.relightCandle", "cancel", "ok", "edit-candle-page", "candle-details-page", "person-details-page"];
@@ -9,25 +9,25 @@ export declare const DICTIONARY_CONFIG: {
9
9
  readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.add-person-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.persons-page", "pageMenu.persons-map-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "imageCannotBeLoaded", "burnedOutCandle", "burnsSoFar", "timeAbbreviationDay", "timeAbbreviationHour", "timeAbbreviationMinute", "select", "burnedCandles", "burningCandles", "myCandles", "createdAt", "litName", "candles", "candle", "candlesInCount", "reset", "sort", "candles"];
10
10
  };
11
11
  readonly 'contact-page': {
12
- readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.add-person-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.persons-page", "pageMenu.persons-map-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "contact-page.infoTitle", "contact-page.sendMessage.submitError", "contact-page.sendMessage.submitSuccess", "contact-page.sendMessageTitle", "contact-page", "email", "formInvalidEmailError", "formInvalidText", "formRequiredError", "reset", "send", "message", "name", "subject", "facebook"];
12
+ readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.add-person-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.persons-page", "pageMenu.persons-map-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "contact-page.infoTitle", "contact-page.sendMessage.submitError", "contact-page.sendMessage.submitSuccess", "contact-page.sendMessageTitle", "contact-page", "email", "form.error.email", "form.error.invalid", "form.error.required", "reset", "send", "message", "name", "subject", "facebook"];
13
13
  };
14
14
  readonly 'cookie-policy-page': {
15
15
  readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.add-person-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.persons-page", "pageMenu.persons-map-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "acceptAll", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookie-policy-page"];
16
16
  };
17
17
  readonly 'edit-candle-page': {
18
- readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.add-person-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.persons-page", "pageMenu.persons-map-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "candle-details-page", "auth.candleLitWarning", "reset", "candle.description", "formMaxLengthError", "formRequiredError", "litName", "edit-candle-page", "modify", "edit-candle-page.maintenance.submitError", "edit-candle-page.maintenance.submitSuccess"];
18
+ readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.add-person-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.persons-page", "pageMenu.persons-map-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "candle-details-page", "auth.candleLitWarning", "reset", "candle.description", "form.error.maxLength", "form.error.required", "litName", "edit-candle-page", "modify", "edit-candle-page.maintenance.submitError", "edit-candle-page.maintenance.submitSuccess"];
19
19
  };
20
20
  readonly 'edit-person-page': {
21
- readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.add-person-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.persons-page", "pageMenu.persons-map-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "edit-person-page", "auth.cannotBeChangedLaterWarning", "auth.loginRequired", "add-person-page", "modify", "reset", "count", "dropZone.acceptedFormats", "dropZone.drapActive", "dropZone.dropZone", "dropZone.sizeLimit", "invalidImage", "tooBigImage", "image", "noMoreImages", "formDateError", "person.birthDate", "person.birthPlaceCountry", "person.deathDate", "person.description", "select", "formMaxLengthError", "proposable", "formRequiredError", "name", "person-details-page", "edit-person-page.maintenance.submitError", "edit-person-page.maintenance.submitSuccess"];
21
+ readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.add-person-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.persons-page", "pageMenu.persons-map-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "edit-person-page", "auth.cannotBeChangedLaterWarning", "auth.loginRequired", "add-person-page", "modify", "reset", "count", "dropZone.acceptedFormats", "dropZone.drapActive", "dropZone.dropZone", "dropZone.sizeLimit", "invalidImage", "tooBigImage", "image", "noMoreImages", "form.error.date", "person.birthDate", "person.birthPlaceCountry", "person.deathDate", "person.description", "select", "form.error.maxLength", "proposable", "form.error.required", "name", "person-details-page", "edit-person-page.maintenance.submitError", "edit-person-page.maintenance.submitSuccess"];
22
22
  };
23
23
  readonly 'help-page': {
24
24
  readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.add-person-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.persons-page", "pageMenu.persons-map-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "help-page", "help-page.intro", "persons", "help-page.personsParagraph", "help-page.addPersonTitle", "help-page.addPersonRule1", "help-page.addPersonRule2", "help-page.addPersonRule3", "help-page.addPersonRule4", "candles", "help-page.candlesParagraph1", "help-page.candlesParagraph2", "help-page.candlesParagraph3", "help-page.lightACandleTitle", "help-page.lightACandleRule1", "help-page.lightACandleRule2"];
25
25
  };
26
26
  readonly 'home-page': {
27
- readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.add-person-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.persons-page", "pageMenu.persons-map-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "lightACandle", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "imageCannotBeLoaded", "burnedOutCandle", "burnsSoFar", "timeAbbreviationDay", "timeAbbreviationHour", "timeAbbreviationMinute", "candles", "home-page.lastLitCandles", "burnedCandles", "burningCandles", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "lightACandle", "persons", "home-page.lastUploadedPersons", "auth.cannotBeChangedLaterWarning", "more", "reset", "light-candle-page.maintenance.submitError", "lightTheCandle", "light-candle-page.maintenance.submitSuccess", "formMaxLengthError", "person.name", "formRequiredError", "litName", "burnedCandles", "burningCandles", "candles", "persons", "home-page.statistics", "add-person-page", "auth.cannotBeChangedLaterWarning", "home-page.welcome.description1", "home-page.welcome.description2", "home-page.welcome", "persons-map-page", "home-page.proposal"];
27
+ readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.add-person-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.persons-page", "pageMenu.persons-map-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "lightACandle", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "imageCannotBeLoaded", "burnedOutCandle", "burnsSoFar", "timeAbbreviationDay", "timeAbbreviationHour", "timeAbbreviationMinute", "candles", "home-page.lastLitCandles", "burnedCandles", "burningCandles", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "lightACandle", "persons", "home-page.lastUploadedPersons", "auth.cannotBeChangedLaterWarning", "more", "reset", "light-candle-page.maintenance.submitError", "lightTheCandle", "light-candle-page.maintenance.submitSuccess", "form.error.maxLength", "person.name", "form.error.required", "litName", "burnedCandles", "burningCandles", "candles", "persons", "home-page.statistics", "add-person-page", "auth.cannotBeChangedLaterWarning", "home-page.welcome.description1", "home-page.welcome.description2", "home-page.welcome", "persons-map-page", "home-page.proposal"];
28
28
  };
29
29
  readonly 'light-candle-page': {
30
- readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.add-person-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.persons-page", "pageMenu.persons-map-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "person-candles-page", "auth.candleLitWarning", "reset", "candle.description", "formMaxLengthError", "formRequiredError", "litName", "lightTheCandle", "light-candle-page.maintenance.submitError", "light-candle-page.maintenance.submitSuccess", "light-candle-page"];
30
+ readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.add-person-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.persons-page", "pageMenu.persons-map-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "person-candles-page", "auth.candleLitWarning", "reset", "candle.description", "form.error.maxLength", "form.error.required", "litName", "lightTheCandle", "light-candle-page.maintenance.submitError", "light-candle-page.maintenance.submitSuccess", "light-candle-page"];
31
31
  };
32
32
  readonly 'person-candles-page': {
33
33
  readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.add-person-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.persons-page", "pageMenu.persons-map-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "auth.cannotBeChangedLaterWarning", "auth.candleLitWarning", "light-candle-page", "person-candles-page.addCandle.description", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "imageCannotBeLoaded", "burnedOutCandle", "burnsSoFar", "timeAbbreviationDay", "timeAbbreviationHour", "timeAbbreviationMinute", "select", "burnedCandles", "burningCandles", "myCandles", "createdAt", "litName", "candles", "candle", "candlesInCount", "reset", "sort", "person-candles-page", "person-details-page"];
@@ -53,9 +53,9 @@ export const DICTIONARY_CONFIG = {
53
53
  'contact-page.sendMessageTitle',
54
54
  'contact-page',
55
55
  'email',
56
- 'formInvalidEmailError',
57
- 'formInvalidText',
58
- 'formRequiredError',
56
+ 'form.error.email',
57
+ 'form.error.invalid',
58
+ 'form.error.required',
59
59
  'reset',
60
60
  'send',
61
61
  'message',
@@ -134,9 +134,9 @@ export const DICTIONARY_CONFIG = {
134
134
  'light-candle-page.maintenance.submitError',
135
135
  'lightTheCandle',
136
136
  'light-candle-page.maintenance.submitSuccess',
137
- 'formMaxLengthError',
137
+ 'form.error.maxLength',
138
138
  'person.name',
139
- 'formRequiredError',
139
+ 'form.error.required',
140
140
  'litName',
141
141
  'burnedCandles',
142
142
  'burningCandles',
@@ -1 +1,2 @@
1
- export * from './util.js';
1
+ import { GetExcludedTranslationIds } from './type.js';
2
+ export declare const getExcludedTranslationIds: GetExcludedTranslationIds;
@@ -1 +1,10 @@
1
- export * from './util.js';
1
+ import { isUndefined } from '../../type/index.js';
2
+ export const getExcludedTranslationIds = (page, options) => {
3
+ const excludedIds = [`pageMenu.${page}`];
4
+ if (options) {
5
+ const { isAuthenticated } = options;
6
+ if (!isUndefined(isAuthenticated))
7
+ excludedIds.push(isAuthenticated ? 'login' : 'logout');
8
+ }
9
+ return excludedIds;
10
+ };
@@ -1 +1 @@
1
- export declare const CANDLE_MAINTENANCE_TRANSLATION_IDS: readonly ["auth.candleLitWarning", "reset", "candle.description", "formMaxLengthError", "formRequiredError", "litName"];
1
+ export declare const CANDLE_MAINTENANCE_TRANSLATION_IDS: readonly ["auth.candleLitWarning", "reset", "candle.description", "form.error.maxLength", "form.error.required", "litName"];
@@ -2,8 +2,8 @@ export const CANDLE_MAINTENANCE_TRANSLATION_IDS = [
2
2
  'auth.candleLitWarning',
3
3
  'reset',
4
4
  'candle.description',
5
- 'formMaxLengthError',
6
- 'formRequiredError',
5
+ 'form.error.maxLength',
6
+ 'form.error.required',
7
7
  'litName',
8
8
  ];
9
9
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -1 +1 @@
1
- export declare const TRANSLATION_IDS: readonly ["acceptAll", "add-person-page", "add-person-page.maintenance.submitError", "add-person-page.maintenance.submitSuccess", "auth.cannotBeChangedLaterWarning", "auth.candleLitWarning", "auth.loginRequired", "author", "burnedCandles", "burnedOutCandle", "burningCandles", "burnsSoFar", "cancel", "candle-details-page", "candle-details-page.deleteCandle.submitError", "candle-details-page.deleteCandle.submitSuccess", "candle-details-page.deleteCandle.question", "candle-details-page.deleteCandle", "candle-details-page.myCandle.submitError", "candle-details-page.myCandle.submitSuccess", "candle-details-page.myCandle.loginRequired", "candle-details-page.myCandle.question", "candle-details-page.myCandle", "candle-details-page.relightCandle.submitError", "candle-details-page.relightCandle.submitSuccess", "candle-details-page.relightCandle.question", "candle-details-page.relightCandle", "candle", "candlesInCount", "candles", "candles-page", "candle.description", "caseSensitive", "contact-page", "contact-page.infoTitle", "contact-page.sendMessage.submitError", "contact-page.sendMessage.submitSuccess", "contact-page.sendMessageTitle", "cookieConsentForm.title", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookie-policy-page", "count", "createdAt", "customize", "dropZone.acceptedFormats", "dropZone.drapActive", "dropZone.dropZone", "dropZone.sizeLimit", "edit-candle-page", "edit-candle-page.maintenance.submitError", "edit-candle-page.maintenance.submitSuccess", "edit-person-page", "edit-person-page.maintenance.submitError", "edit-person-page.maintenance.submitSuccess", "email", "english", "facebook", "help-page.addPersonRule1", "help-page.addPersonRule2", "help-page.addPersonRule3", "help-page.addPersonRule4", "help-page.addPersonTitle", "help-page.candlesParagraph1", "help-page.candlesParagraph2", "help-page.candlesParagraph3", "help-page.intro", "help-page.lightACandleRule1", "help-page.lightACandleRule2", "help-page.lightACandleTitle", "help-page.personsParagraph", "help-page", "home-page", "home-page.proposal", "home-page.lastLitCandles", "home-page.lastUploadedPersons", "home-page.quickCandleLighting.placeOfTheCandle.placehodler", "home-page.quickCandleLighting", "home-page.statistics", "home-page.welcome.description1", "home-page.welcome.description2", "home-page.welcome", "hungarian", "formDateError", "formInvalidEmailError", "formInvalidText", "formMaxLengthError", "formMessageError", "formRequiredError", "image", "invalidImage", "noMoreImages", "tooBigImage", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "lightACandle", "light-candle-page", "light-candle-page.maintenance.submitError", "light-candle-page.maintenance.submitSuccess", "lightTheCandle", "litName", "login", "loginPage.login.submitError", "loginPage.login.showPassword", "logout", "map", "message", "modify", "more", "motto1", "motto2", "motto3", "myCandles", "myPersons", "name", "ok", "pageMenu.add-person-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.persons-page", "pageMenu.persons-map-page", "pageMenu.terms-and-conditions-page", "password", "person", "person.birthDate", "person.birthPlaceCountry", "person.deathDate", "person.description", "person.name", "person-candles-page", "person-candles-page.addCandle.description", "person-details-page", "person-details-page.deletePerson.submitError", "person-details-page.deletePerson.submitSuccess", "person-details-page.deletePerson.question", "person-details-page.deletePerson", "person-details-page.myPerson.submitError", "person-details-page.myPerson.submitSuccess", "person-details-page.myPerson.loginRequired", "person-details-page.myPerson.question", "person-details-page.myPerson", "persons-page", "persons", "personsInCount", "persons-page.addPerson.description", "persons-page.personsList.hasImage", "persons-page.personsList", "persons-map-page.map.description", "persons-map-page", "proposable", "redirecting", "rejectAll", "reset", "save", "savedSuccessfully", "select", "send", "shareOnFacebook", "sort", "subject", "timeAbbreviationDay", "timeAbbreviationHour", "timeAbbreviationMinute", "terms-and-conditions-page.applicableLawParagraph", "terms-and-conditions-page.applicableLawTitle", "terms-and-conditions-page.conditionsOfUseParagraph", "terms-and-conditions-page.conditionsOfUseTitle", "terms-and-conditions-page.disputesParagraph", "terms-and-conditions-page.disputesTitle", "terms-and-conditions-page.intellectualPropertyParagraph", "terms-and-conditions-page.intellectualPropertyTitle", "terms-and-conditions-page.intro", "terms-and-conditions-page.limitationAndLiabilityParagraph", "terms-and-conditions-page.limitationAndLiabilityTitle", "terms-and-conditions-page", "terms-and-conditions-page.userAccountsParagraph", "terms-and-conditions-page.userAccountsTitle", "username"];
1
+ export declare const TRANSLATION_IDS: readonly ["acceptAll", "add-person-page", "add-person-page.maintenance.submitError", "add-person-page.maintenance.submitSuccess", "auth.cannotBeChangedLaterWarning", "auth.candleLitWarning", "auth.loginRequired", "author", "burnedCandles", "burnedOutCandle", "burningCandles", "burnsSoFar", "cancel", "candle-details-page", "candle-details-page.deleteCandle.submitError", "candle-details-page.deleteCandle.submitSuccess", "candle-details-page.deleteCandle.question", "candle-details-page.deleteCandle", "candle-details-page.myCandle.submitError", "candle-details-page.myCandle.submitSuccess", "candle-details-page.myCandle.loginRequired", "candle-details-page.myCandle.question", "candle-details-page.myCandle", "candle-details-page.relightCandle.submitError", "candle-details-page.relightCandle.submitSuccess", "candle-details-page.relightCandle.question", "candle-details-page.relightCandle", "candle", "candlesInCount", "candles", "candles-page", "candle.description", "caseSensitive", "contact-page", "contact-page.infoTitle", "contact-page.sendMessage.submitError", "contact-page.sendMessage.submitSuccess", "contact-page.sendMessageTitle", "cookieConsentForm.title", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookie-policy-page", "count", "createdAt", "customize", "dropZone.acceptedFormats", "dropZone.drapActive", "dropZone.dropZone", "dropZone.sizeLimit", "edit-candle-page", "edit-candle-page.maintenance.submitError", "edit-candle-page.maintenance.submitSuccess", "edit-person-page", "edit-person-page.maintenance.submitError", "edit-person-page.maintenance.submitSuccess", "email", "english", "facebook", "help-page.addPersonRule1", "help-page.addPersonRule2", "help-page.addPersonRule3", "help-page.addPersonRule4", "help-page.addPersonTitle", "help-page.candlesParagraph1", "help-page.candlesParagraph2", "help-page.candlesParagraph3", "help-page.intro", "help-page.lightACandleRule1", "help-page.lightACandleRule2", "help-page.lightACandleTitle", "help-page.personsParagraph", "help-page", "home-page", "home-page.proposal", "home-page.lastLitCandles", "home-page.lastUploadedPersons", "home-page.quickCandleLighting.placeOfTheCandle.placehodler", "home-page.quickCandleLighting", "home-page.statistics", "home-page.welcome.description1", "home-page.welcome.description2", "home-page.welcome", "hungarian", "form.error.date", "form.error.email", "form.error.invalid", "form.error.maxLength", "form.error.message", "form.error.required", "image", "invalidImage", "noMoreImages", "tooBigImage", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "lightACandle", "light-candle-page", "light-candle-page.maintenance.submitError", "light-candle-page.maintenance.submitSuccess", "lightTheCandle", "litName", "login", "loginPage.login.submitError", "loginPage.login.showPassword", "logout", "map", "message", "modify", "more", "motto1", "motto2", "motto3", "myCandles", "myPersons", "name", "ok", "pageMenu.add-person-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.persons-page", "pageMenu.persons-map-page", "pageMenu.terms-and-conditions-page", "password", "person", "person.birthDate", "person.birthPlaceCountry", "person.deathDate", "person.description", "person.name", "person-candles-page", "person-candles-page.addCandle.description", "person-details-page", "person-details-page.deletePerson.submitError", "person-details-page.deletePerson.submitSuccess", "person-details-page.deletePerson.question", "person-details-page.deletePerson", "person-details-page.myPerson.submitError", "person-details-page.myPerson.submitSuccess", "person-details-page.myPerson.loginRequired", "person-details-page.myPerson.question", "person-details-page.myPerson", "persons-page", "persons", "personsInCount", "persons-page.addPerson.description", "persons-page.personsList.hasImage", "persons-page.personsList", "persons-map-page.map.description", "persons-map-page", "proposable", "redirecting", "rejectAll", "reset", "save", "savedSuccessfully", "select", "send", "shareOnFacebook", "sort", "subject", "timeAbbreviationDay", "timeAbbreviationHour", "timeAbbreviationMinute", "terms-and-conditions-page.applicableLawParagraph", "terms-and-conditions-page.applicableLawTitle", "terms-and-conditions-page.conditionsOfUseParagraph", "terms-and-conditions-page.conditionsOfUseTitle", "terms-and-conditions-page.disputesParagraph", "terms-and-conditions-page.disputesTitle", "terms-and-conditions-page.intellectualPropertyParagraph", "terms-and-conditions-page.intellectualPropertyTitle", "terms-and-conditions-page.intro", "terms-and-conditions-page.limitationAndLiabilityParagraph", "terms-and-conditions-page.limitationAndLiabilityTitle", "terms-and-conditions-page", "terms-and-conditions-page.userAccountsParagraph", "terms-and-conditions-page.userAccountsTitle", "username"];
@@ -82,12 +82,12 @@ export const TRANSLATION_IDS = [
82
82
  'home-page.welcome.description2',
83
83
  'home-page.welcome',
84
84
  'hungarian',
85
- 'formDateError',
86
- 'formInvalidEmailError',
87
- 'formInvalidText',
88
- 'formMaxLengthError',
89
- 'formMessageError',
90
- 'formRequiredError',
85
+ 'form.error.date',
86
+ 'form.error.email',
87
+ 'form.error.invalid',
88
+ 'form.error.maxLength',
89
+ 'form.error.message',
90
+ 'form.error.required',
91
91
  'image',
92
92
  'invalidImage',
93
93
  'noMoreImages',
@@ -1 +1 @@
1
- export declare const PERSON_MAINTENANCE_TRANSLATION_IDS: readonly ["auth.cannotBeChangedLaterWarning", "auth.loginRequired", "add-person-page", "modify", "reset", "count", "dropZone.acceptedFormats", "dropZone.drapActive", "dropZone.dropZone", "dropZone.sizeLimit", "invalidImage", "tooBigImage", "image", "noMoreImages", "formDateError", "person.birthDate", "person.birthPlaceCountry", "person.deathDate", "person.description", "select", "formMaxLengthError", "proposable", "formRequiredError", "name"];
1
+ export declare const PERSON_MAINTENANCE_TRANSLATION_IDS: readonly ["auth.cannotBeChangedLaterWarning", "auth.loginRequired", "add-person-page", "modify", "reset", "count", "dropZone.acceptedFormats", "dropZone.drapActive", "dropZone.dropZone", "dropZone.sizeLimit", "invalidImage", "tooBigImage", "image", "noMoreImages", "form.error.date", "person.birthDate", "person.birthPlaceCountry", "person.deathDate", "person.description", "select", "form.error.maxLength", "proposable", "form.error.required", "name"];
@@ -13,15 +13,15 @@ export const PERSON_MAINTENANCE_TRANSLATION_IDS = [
13
13
  'tooBigImage',
14
14
  'image',
15
15
  'noMoreImages',
16
- 'formDateError',
16
+ 'form.error.date',
17
17
  'person.birthDate',
18
18
  'person.birthPlaceCountry',
19
19
  'person.deathDate',
20
20
  'person.description',
21
21
  'select',
22
- 'formMaxLengthError',
22
+ 'form.error.maxLength',
23
23
  'proposable',
24
- 'formRequiredError',
24
+ 'form.error.required',
25
25
  'name',
26
26
  ];
27
27
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -1,2 +0,0 @@
1
- import { GetExcludedTranslationIds } from './type.js';
2
- export declare const getExcludedTranslationIds: GetExcludedTranslationIds;
@@ -1,10 +0,0 @@
1
- import { isUndefined } from '../../type/index.js';
2
- export const getExcludedTranslationIds = (page, options) => {
3
- const excludedIds = [`pageMenu.${page}`];
4
- if (options) {
5
- const { isAuthenticated } = options;
6
- if (isUndefined(isAuthenticated))
7
- excludedIds.push(isAuthenticated ? 'login' : 'logout');
8
- }
9
- return excludedIds;
10
- };