Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Update i18n.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
KaneFreeman committed Oct 14, 2023
1 parent d6707ea commit 72e3d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/lib/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function getI18nInfo<EF extends BaseField>(
if (!hasI18n(collection) || typeof collection[I18N] !== 'object') {
return null;
}
return collection.i18n;
return collection.i18n as I18nInfo;

Check warning on line 46 in packages/core/src/lib/i18n.ts

View check run for this annotation

Codecov / codecov/patch

packages/core/src/lib/i18n.ts#L46

Added line #L46 was not covered by tests
}

export function getI18nFilesDepth<EF extends BaseField>(collection: Collection<EF>, depth: number) {
Expand Down

0 comments on commit 72e3d21

Please sign in to comment.