Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix minor spelling mistakes in utils.ts #521

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@ export const isJson = (text: string) => {
};

/**
* Handles translation for assets with overrides or fallbackes in their
* Handles translation for assets with overrides or fallbacks in their
* translation as defined in Opencast documentation under
* /docs/guides/admin/docs/configuration/admin-ui/asset-upload.md
*
* Asset is expected to have a field "title" that contains a translation string
* t is the hook returned by i18next.useTranslation
* suffix further specifices the asset value if necessary, e.g. "SHORT" for "displayOverride.SHORT"
* suffix further specifies the asset value if necessary, e.g. "SHORT" for "displayOverride.SHORT"
*/
export const translateOverrideFallback = (asset: any, t: TFunction, suffix?: string) => {
let result = undefined;
Expand Down
Loading