Skip to content

Commit

Permalink
fix(SUP-43014): [elearning] specified error message for v7 for IP res…
Browse files Browse the repository at this point in the history
…triction (#936)

Description of the Changes
Add specific message to IP restriction.

part of - kaltura/playkit-js#791, kaltura/kaltura-player-js#846

Resolves SUP-43014
  • Loading branch information
Tzipi-kaltura authored Sep 11, 2024
1 parent 662b493 commit 5dc44df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/error-overlay/error-message-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ const errorsMap: Map<number, ErrorDetails> = new Map<number, ErrorDetails>([
/** GEOLOCATION */
[13, {title: 'geo_location_error_title', message: 'geo_location_error_message'}],
/** KS RESTRICTION */
[14, {title: 'media_unavailable_error_title', message: 'media_unavailable_error_message'}]
[14, {title: 'media_unavailable_error_title', message: 'media_unavailable_error_message'}],
/** IP RESTRICTION */
[15, {title: 'media_unavailable_error_title', message: 'ip_restricted_error_message'}]
]);

const defaultError: ErrorDetails = {
Expand Down
1 change: 1 addition & 0 deletions translations/en.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"media_not_ready_error_message": "Media is processing, check back soon.",
"geo_location_error_title": "Geo location unavailable",
"geo_location_error_message": "This content is unavailable in your region.",
"ip_restricted_error_message": "This media has been restricted to certain IP addresses.",
"default_session_text": "Copy for customer care: session ID",
"retry": "Try again"
},
Expand Down

0 comments on commit 5dc44df

Please sign in to comment.