@adminforth/i18n 1.0.18-next.4 → 1.0.18-next.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -0
- package/index.ts +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -515,6 +515,9 @@ ${JSON.stringify(strings.reduce((acc, s) => {
|
|
|
515
515
|
validateConfigAfterDiscover(adminforth, resourceConfig) {
|
|
516
516
|
// optional method where you can safely check field types after database discovery was performed
|
|
517
517
|
// ensure each trFieldName (apart from enFieldName) is nullable column of type string
|
|
518
|
+
if (this.options.completeAdapter) {
|
|
519
|
+
this.options.completeAdapter.validate();
|
|
520
|
+
}
|
|
518
521
|
for (const lang of this.options.supportedLanguages) {
|
|
519
522
|
if (lang === 'en') {
|
|
520
523
|
continue;
|
package/index.ts
CHANGED
|
@@ -607,12 +607,10 @@ ${
|
|
|
607
607
|
});
|
|
608
608
|
w.on('change', () => {
|
|
609
609
|
process.env.HEAVY_DEBUG && console.log('🪲🔔messagesFile change', messagesFile);
|
|
610
|
-
|
|
611
610
|
this.processExtractedMessages(adminforth, messagesFile);
|
|
612
611
|
});
|
|
613
612
|
w.on('add', () => {
|
|
614
613
|
process.env.HEAVY_DEBUG && console.log('🪲🔔messagesFile add', messagesFile);
|
|
615
|
-
|
|
616
614
|
this.processExtractedMessages(adminforth, messagesFile);
|
|
617
615
|
});
|
|
618
616
|
|
|
@@ -621,6 +619,10 @@ ${
|
|
|
621
619
|
validateConfigAfterDiscover(adminforth: IAdminForth, resourceConfig: AdminForthResource) {
|
|
622
620
|
// optional method where you can safely check field types after database discovery was performed
|
|
623
621
|
// ensure each trFieldName (apart from enFieldName) is nullable column of type string
|
|
622
|
+
if (this.options.completeAdapter) {
|
|
623
|
+
this.options.completeAdapter.validate();
|
|
624
|
+
}
|
|
625
|
+
|
|
624
626
|
for (const lang of this.options.supportedLanguages) {
|
|
625
627
|
if (lang === 'en') {
|
|
626
628
|
continue;
|