@elice/material-runbox 1.240401.0 → 1.240508.0-globalization.0

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.
Files changed (39) hide show
  1. package/cjs/components/material-runbox/MaterialRunbox.d.ts +3 -2
  2. package/cjs/components/material-runbox/MaterialRunbox.js +14 -11
  3. package/cjs/components/material-runbox/MaterialRunboxContent.js +10 -7
  4. package/cjs/components/material-runbox/MaterialRunboxHeader.js +11 -9
  5. package/cjs/components/material-runbox/actions/MaterialRunboxActionAutoShutdown.js +7 -5
  6. package/cjs/components/material-runbox/actions/MaterialRunboxActionGrade.js +23 -21
  7. package/cjs/components/material-runbox/actions/MaterialRunboxActionReset.js +15 -13
  8. package/cjs/components/material-runbox/actions/MaterialRunboxActionRestart.js +14 -11
  9. package/cjs/components/material-runbox/actions/MaterialRunboxActionShare.js +8 -6
  10. package/cjs/components/material-runbox/contexts/MaterialRunboxCommandContext.js +6 -4
  11. package/cjs/components/material-runbox/hooks/useRunboxControl.js +5 -3
  12. package/cjs/components/material-runbox/locales/en.json.js +2 -2
  13. package/cjs/components/material-runbox/locales/index.d.ts +3 -2
  14. package/cjs/components/material-runbox/locales/ko.json.js +2 -2
  15. package/cjs/components/material-runbox/locales/th.json.js +7 -0
  16. package/cjs/components/material-runbox/runtime/RuntimeOverlayAssigned.js +8 -5
  17. package/cjs/components/material-runbox/runtime/RuntimeOverlayQueued.js +12 -10
  18. package/cjs/components/material-runbox/runtime/RuntimeOverlayTerminated.js +17 -15
  19. package/es/components/material-runbox/MaterialRunbox.d.ts +3 -2
  20. package/es/components/material-runbox/MaterialRunbox.js +14 -11
  21. package/es/components/material-runbox/MaterialRunboxContent.js +10 -7
  22. package/es/components/material-runbox/MaterialRunboxHeader.js +11 -9
  23. package/es/components/material-runbox/actions/MaterialRunboxActionAutoShutdown.js +4 -2
  24. package/es/components/material-runbox/actions/MaterialRunboxActionGrade.js +20 -18
  25. package/es/components/material-runbox/actions/MaterialRunboxActionReset.js +14 -12
  26. package/es/components/material-runbox/actions/MaterialRunboxActionRestart.js +14 -11
  27. package/es/components/material-runbox/actions/MaterialRunboxActionShare.js +6 -4
  28. package/es/components/material-runbox/contexts/MaterialRunboxCommandContext.js +4 -2
  29. package/es/components/material-runbox/hooks/useRunboxControl.js +4 -2
  30. package/es/components/material-runbox/locales/en.json.js +2 -2
  31. package/es/components/material-runbox/locales/index.d.ts +3 -2
  32. package/es/components/material-runbox/locales/ko.json.js +2 -2
  33. package/es/components/material-runbox/locales/th.json.js +3 -0
  34. package/es/components/material-runbox/runtime/RuntimeOverlayAssigned.js +8 -5
  35. package/es/components/material-runbox/runtime/RuntimeOverlayQueued.js +12 -10
  36. package/es/components/material-runbox/runtime/RuntimeOverlayTerminated.js +10 -8
  37. package/package.json +7 -7
  38. package/cjs/components/material-runbox/locales/index.js +0 -9
  39. package/es/components/material-runbox/locales/index.js +0 -2
@@ -1,5 +1,5 @@
1
1
  import { useRef, useCallback } from 'react';
2
- import { useIntl } from 'react-intl';
2
+ import { useRawEliceIntl } from '@elice/intl';
3
3
  import { useSnackbar } from '@elice/mui-x-snackbar';
4
4
  import { useEliceRunboxRunning } from '@elice/runbox-client';
5
5
  import { useMaterialRunboxApiContext } from '../contexts/MaterialRunboxApiContext.js';
@@ -14,7 +14,9 @@ import '../contexts/MaterialRunboxContext.js';
14
14
  */
15
15
  const useRunboxControl = props => {
16
16
  const _return = useRef({});
17
- const intl = useIntl();
17
+ const {
18
+ intl
19
+ } = useRawEliceIntl();
18
20
  const {
19
21
  enqueueSnackbar
20
22
  } = useSnackbar();
@@ -1,3 +1,3 @@
1
- var en = {"runbox.action.autoShutdown.title":"Always on","runbox.action.autoShutdown.tooltip.disabled":"This runtime automatically shuts down after {time}, which is set as the per-session usage time.","runbox.action.autoShutdown.tooltip.enabled":"If set to always on, the runtime will not shut down even if you leave the learning material. However, it will automatically shut down after {time}, which is set as the session-specific usage time of the runtime.","runbox.action.grade.dialog.description.error":"An error occurred while grading the code.","runbox.action.grade.dialog.description.success":"Grading completed successfully.","runbox.action.grade.dialog.title":"Grading result","runbox.action.grade.noti.error":"An error occurred while grading the code.","runbox.action.grade.title":"Submit","runbox.action.grade.tooltip.onProgress":"Grading is in progress. Please wait for a moment. Depending on the material, grading may take up to 3 minutes.","runbox.action.reset.dialog.actions.confirm":"Reset","runbox.action.reset.dialog.description":"Are you sure you want to reset the runbox code? Your codes will be overwritten to default code of material.\nAfter reset, the runbox session will be refreshed.","runbox.action.reset.noti.error":"An error occurred while initializing the runbox code.","runbox.action.reset.title":"Reset code","runbox.action.restart.dialog.actions.confirm":"Restart","runbox.action.restart.dialog.description":"Are you sure you want to restart the runbox?","runbox.action.restart.title":"Restart runbox","runbox.action.share.title":"Share runbox URL","runbox.action.share.snackbar.copied.fail":"Copying the runbox URL failed, please try again","runbox.action.share.snackbar.copied.success":"The runbox URL was copied successfully.","runbox.action.submitCountInfo.dialog.title":"Limit the number of submissions","runbox.action.submitCountInfo.dialog.description":"You have exceeded the submission count limit","runbox.action.submitCountInfo.tooltip.disabled":"The submission count has been used up","runbox.common.close":"Close","runbox.common.retry":"Retry","runbox.common.support":"Support","runbox.context.command.ping.error":"An error occurred while processing task.","runbox.runtime.message.startError":"There was an error starting the runbox.","runbox.runtime.overlay.assigned.description":"(3 of 3)\nRunbox is running.\nPlease wait!","runbox.runtime.overlay.assigned.description_timeout":"(3 of 3)\nRunning the runbox is taking longer than we expected.\nPlease wait a little longer without refreshing!","runbox.runtime.overlay.queued.description":"(2 of 3)\nCurrently queued {waiters} times...","runbox.runtime.overlay.queued.description_zero":"(2 of 3)\nRunbox will run soon","runbox.runtime.overlay.terminated.description.default":"The runtime terminated due to an unexpected problem.\nClick the button below to reconnect to the runbox.","runbox.runtime.overlay.terminated.description.general":"The runtime connected to the runbox has ended.\nTo reconnect to the runbox, click the button below.","runbox.runtime.overlay.terminated.description.os_disk_is_full":"Runtime has ended because the disk is full.\nIf you have recently deleted a runbox, it may take some time to reflect.","runbox.runtime.overlay.terminated.description.quota_exceeded":"The runtime has ended because the runtime has expired.","runbox.runtime.overlay.terminated.description.quota_per_session_exceeded":"Runbox has been running for 24 hours and the runtime has ended.\nTo reconnect to the runbox, click the button below.","runbox.runtime.overlay.terminated.description.unexpected":"If the problem persists, please contact customer service.","runbox.runtime.overlay.terminated.restart":"Reconnect","runbox.runtime.overlay.terminated.title":"Runtime disconnected","runbox.header.submitInfo":"{isIndividual, select, true {} other {Team}} submission count | {remainCount}/{totalCount} times left {isDailyLimitEnabled, select, true {today} other {}}"};
1
+ var messageEn = {"runbox.action.autoShutdown.title":"Always on","runbox.action.autoShutdown.tooltip.disabled":"This runtime automatically shuts down after {time}, which is set as the per-session usage time.","runbox.action.autoShutdown.tooltip.enabled":"If set to always on, the runtime will not shut down even if you leave the learning {_termLibraryLecturePage}. However, it will automatically shut down after {time}, which is set as the session-specific usage time of the runtime.","runbox.action.grade.dialog.description.error":"An error occurred while grading the code.","runbox.action.grade.dialog.description.success":"Grading completed successfully.","runbox.action.grade.dialog.title":"Grading result","runbox.action.grade.noti.error":"An error occurred while grading the code.","runbox.action.grade.title":"Submit","runbox.action.grade.tooltip.onProgress":"Grading is in progress. Please wait for a moment. Depending on the {_termLibraryLecturePage}, grading may take up to 3 minutes.","runbox.action.reset.dialog.actions.confirm":"Reset","runbox.action.reset.dialog.description":"Are you sure you want to reset the runbox code? Your codes will be overwritten to default code of {_termLibraryLecturePage}.\nAfter reset, the runbox session will be refreshed.","runbox.action.reset.noti.error":"An error occurred while initializing the runbox code.","runbox.action.reset.title":"Reset code","runbox.action.restart.dialog.actions.confirm":"Restart","runbox.action.restart.dialog.description":"Are you sure you want to restart the runbox?","runbox.action.restart.title":"Restart runbox","runbox.action.share.title":"Share runbox URL","runbox.action.share.snackbar.copied.fail":"Copying the runbox URL failed, please try again","runbox.action.share.snackbar.copied.success":"The runbox URL was copied successfully.","runbox.action.submitCountInfo.dialog.title":"Limit the number of submissions","runbox.action.submitCountInfo.dialog.description":"You have exceeded the submission count limit","runbox.action.submitCountInfo.tooltip.disabled":"The submission count has been used up","runbox.common.close":"Close","runbox.common.retry":"Retry","runbox.common.support":"Support","runbox.context.command.ping.error":"An error occurred while processing task.","runbox.runtime.message.startError":"There was an error starting the runbox.","runbox.runtime.overlay.assigned.description":"(3 of 3)\nRunbox is running.\nPlease wait!","runbox.runtime.overlay.assigned.description_timeout":"(3 of 3)\nRunning the runbox is taking longer than we expected.\nPlease wait a little longer without refreshing!","runbox.runtime.overlay.queued.description":"(2 of 3)\nCurrently queued {waiters} times...","runbox.runtime.overlay.queued.description_zero":"(2 of 3)\nRunbox will run soon","runbox.runtime.overlay.terminated.description.default":"The runtime terminated due to an unexpected problem.\nClick the button below to reconnect to the runbox.","runbox.runtime.overlay.terminated.description.general":"The runtime connected to the runbox has ended.\nTo reconnect to the runbox, click the button below.","runbox.runtime.overlay.terminated.description.os_disk_is_full":"Runtime has ended because the disk is full.\nIf you have recently deleted a runbox, it may take some time to reflect.","runbox.runtime.overlay.terminated.description.quota_exceeded":"The runtime has ended because the runtime has expired.","runbox.runtime.overlay.terminated.description.quota_per_session_exceeded":"Runbox has been running for 24 hours and the runtime has ended.\nTo reconnect to the runbox, click the button below.","runbox.runtime.overlay.terminated.description.unexpected":"If the problem persists, please contact customer service.","runbox.runtime.overlay.terminated.restart":"Reconnect","runbox.runtime.overlay.terminated.title":"Runtime disconnected","runbox.header.submitInfo":"{isIndividual, select, true {} other {Team}} submission count | {remainCount}/{totalCount} times left {isDailyLimitEnabled, select, true {today} other {}}"};
2
2
 
3
- export { en as default };
3
+ export { messageEn as default };
@@ -1,2 +1,3 @@
1
- export { default as en } from './en.json';
2
- export { default as ko } from './ko.json';
1
+ export { default as messageEn } from './en.json';
2
+ export { default as messageKo } from './ko.json';
3
+ export { default as messageTh } from './th.json';
@@ -1,3 +1,3 @@
1
- var ko = {"runbox.action.autoShutdown.title":"항상 켜두기","runbox.action.autoShutdown.tooltip.disabled":"해당 런타임은 세션별 사용 시간으로 설정된 {time}이 지나면 자동으로 종료됩니다.","runbox.action.autoShutdown.tooltip.enabled":"항상 켜두기를 설정하면 학습 자료 밖으로 나가도 런타임이 종료되지 않습니다. 다만, 해당 런타임의 세션별 사용 시간으로 설정된 {time}이 지나면 자동으로 종료됩니다.","runbox.action.grade.dialog.description.error":"채점 중에 오류가 발생했습니다.","runbox.action.grade.dialog.description.success":"채점이 완료되었습니다.","runbox.action.grade.dialog.title":"채점 결과","runbox.action.grade.noti.error":"코드를 채점하는 도중 오류가 발생했습니다.","runbox.action.grade.title":"제출","runbox.action.grade.tooltip.onProgress":"코드 채점이 진행 중 입니다. 잠시만 기다려 주세요. 실습에 따라 채점이 최대 3분까지 소요될 수 있습니다.","runbox.action.reset.dialog.actions.confirm":"초기화","runbox.action.reset.dialog.description":"런박스 코드를 초기화하시겠습니까? 초기화 시 학습자료의 코드가 기본 코드로 덮어씌워집니다.\n초기화 이후 런박스 세션이 새로고침 됩니다.","runbox.action.reset.noti.error":"런박스 코드를 초기화 하는 중에 오류가 발생했습니다.","runbox.action.reset.title":"코드 초기화","runbox.action.restart.dialog.actions.confirm":"재시작","runbox.action.restart.dialog.description":"런박스를 재시작 하시겠습니까?","runbox.action.restart.title":"런박스 재시작","runbox.action.share.title":"런박스 URL 복사","runbox.action.share.snackbar.copied.fail":"런박스 URL을 복사에 실패했습니다. 다시 시도해주세요.","runbox.action.share.snackbar.copied.success":"런박스 URL을 복사하였습니다.","runbox.action.submitCountInfo.dialog.title":"제출 횟수 제한","runbox.action.submitCountInfo.dialog.description":"제출 횟수 제한을 초과했습니다.","runbox.action.submitCountInfo.tooltip.disabled":"제출 횟수를 모두 사용했습니다.","runbox.common.close":"닫기","runbox.common.retry":"재시도","runbox.common.support":"고객센터","runbox.context.command.ping.error":"런박스 작업을 수행하는 도중 오류가 발생했습니다.","runbox.runtime.message.startError":"런박스를 시작하는 중에 오류가 발생했습니다.","runbox.runtime.overlay.assigned.description":"(3 / 3)\n런박스가 실행 중입니다.\n잠시만 기다려주세요!","runbox.runtime.overlay.assigned.description_timeout":"(3 / 3)\n런박스를 실행하는데\n예상보다 시간이 소요되고 있습니다.\n새로고침하지 말고 조금만 더 기다려주세요!","runbox.runtime.overlay.queued.description":"(2 / 3)\n현재 {waiters}번째 대기 중입니다...","runbox.runtime.overlay.queued.description_zero":"(2 / 3)\n곧 런박스가 실행됩니다","runbox.runtime.overlay.terminated.description.default":"예상치 못한 문제로 런타임이 종료되었습니다.\n런박스를 재접속하려면 아래 버튼을 눌러주세요.","runbox.runtime.overlay.terminated.description.general":"런박스에 연결된 런타임이 종료되었습니다.\n런박스를 재접속하려면 아래 버튼을 눌러주세요.","runbox.runtime.overlay.terminated.description.os_disk_is_full":"디스크가 가득 차서 런타임이 종료되었습니다.\n최근 런박스를 삭제하셨다면 반영까지 시간이 소요될 수 있습니다.","runbox.runtime.overlay.terminated.description.quota_exceeded":"런타임 사용시간이 만료되어 런타임이 종료되었습니다.","runbox.runtime.overlay.terminated.description.quota_per_session_exceeded":"런박스를 실행한지 24시간이 경과하여 런타임이 종료되었습니다.\n런박스를 재접속하려면 아래 버튼을 눌러주세요.","runbox.runtime.overlay.terminated.description.unexpected":"문제가 지속되면 고객센터에 문의해주세요.","runbox.runtime.overlay.terminated.restart":"재접속","runbox.runtime.overlay.terminated.title":"런타임 연결 해제됨","runbox.header.submitInfo":"{isIndividual, select, true {} other {팀}} 제출 횟수 | {isDailyLimitEnabled, select, true {오늘} other {}} {remainCount}/{totalCount}회 남음"};
1
+ var messageKo = {"runbox.action.autoShutdown.title":"항상 켜두기","runbox.action.autoShutdown.tooltip.disabled":"해당 런타임은 세션별 사용 시간으로 설정된 {time}이 지나면 자동으로 종료됩니다.","runbox.action.autoShutdown.tooltip.enabled":"항상 켜두기를 설정하면 학습 {_termLibraryLecturePage} 밖으로 나가도 런타임이 종료되지 않습니다. 다만, 해당 런타임의 세션별 사용 시간으로 설정된 {time}이 지나면 자동으로 종료됩니다.","runbox.action.grade.dialog.description.error":"채점 중에 오류가 발생했습니다.","runbox.action.grade.dialog.description.success":"채점이 완료되었습니다.","runbox.action.grade.dialog.title":"채점 결과","runbox.action.grade.noti.error":"코드를 채점하는 도중 오류가 발생했습니다.","runbox.action.grade.title":"제출","runbox.action.grade.tooltip.onProgress":"코드 채점이 진행 중 입니다. 잠시만 기다려 주세요. 실습에 따라 채점이 최대 3분까지 소요될 수 있습니다.","runbox.action.reset.dialog.actions.confirm":"초기화","runbox.action.reset.dialog.description":"런박스 코드를 초기화하시겠습니까? 초기화 시 학습{_termLibraryLecturePage}의 코드가 기본 코드로 덮어씌워집니다.\n초기화 이후 런박스 세션이 새로고침 됩니다.","runbox.action.reset.noti.error":"런박스 코드를 초기화 하는 중에 오류가 발생했습니다.","runbox.action.reset.title":"코드 초기화","runbox.action.restart.dialog.actions.confirm":"재시작","runbox.action.restart.dialog.description":"런박스를 재시작 하시겠습니까?","runbox.action.restart.title":"런박스 재시작","runbox.action.share.title":"런박스 URL 복사","runbox.action.share.snackbar.copied.fail":"런박스 URL을 복사에 실패했습니다. 다시 시도해주세요.","runbox.action.share.snackbar.copied.success":"런박스 URL을 복사하였습니다.","runbox.action.submitCountInfo.dialog.title":"제출 횟수 제한","runbox.action.submitCountInfo.dialog.description":"제출 횟수 제한을 초과했습니다.","runbox.action.submitCountInfo.tooltip.disabled":"제출 횟수를 모두 사용했습니다.","runbox.common.close":"닫기","runbox.common.retry":"재시도","runbox.common.support":"고객센터","runbox.context.command.ping.error":"런박스 작업을 수행하는 도중 오류가 발생했습니다.","runbox.runtime.message.startError":"런박스를 시작하는 중에 오류가 발생했습니다.","runbox.runtime.overlay.assigned.description":"(3 / 3)\n런박스가 실행 중입니다.\n잠시만 기다려주세요!","runbox.runtime.overlay.assigned.description_timeout":"(3 / 3)\n런박스를 실행하는데\n예상보다 시간이 소요되고 있습니다.\n새로고침하지 말고 조금만 더 기다려주세요!","runbox.runtime.overlay.queued.description":"(2 / 3)\n현재 {waiters}번째 대기 중입니다...","runbox.runtime.overlay.queued.description_zero":"(2 / 3)\n곧 런박스가 실행됩니다","runbox.runtime.overlay.terminated.description.default":"예상치 못한 문제로 런타임이 종료되었습니다.\n런박스를 재접속하려면 아래 버튼을 눌러주세요.","runbox.runtime.overlay.terminated.description.general":"런박스에 연결된 런타임이 종료되었습니다.\n런박스를 재접속하려면 아래 버튼을 눌러주세요.","runbox.runtime.overlay.terminated.description.os_disk_is_full":"디스크가 가득 차서 런타임이 종료되었습니다.\n최근 런박스를 삭제하셨다면 반영까지 시간이 소요될 수 있습니다.","runbox.runtime.overlay.terminated.description.quota_exceeded":"런타임 사용시간이 만료되어 런타임이 종료되었습니다.","runbox.runtime.overlay.terminated.description.quota_per_session_exceeded":"런박스를 실행한지 24시간이 경과하여 런타임이 종료되었습니다.\n런박스를 재접속하려면 아래 버튼을 눌러주세요.","runbox.runtime.overlay.terminated.description.unexpected":"문제가 지속되면 고객센터에 문의해주세요.","runbox.runtime.overlay.terminated.restart":"재접속","runbox.runtime.overlay.terminated.title":"런타임 연결 해제됨","runbox.header.submitInfo":"{isIndividual, select, true {} other {팀}} 제출 횟수 | {isDailyLimitEnabled, select, true {오늘} other {}} {remainCount}/{totalCount}회 남음"};
2
2
 
3
- export { ko as default };
3
+ export { messageKo as default };
@@ -0,0 +1,3 @@
1
+ var messageTh = {"runbox.action.autoShutdown.title":"เปิดตลอดเวลา","runbox.action.autoShutdown.tooltip.disabled":"โรงง่ายได้ถูกตั้งค่าเป็นเวลาการใช้งานต่อเซสชัน {time}เมื่อผ่านไปแล้ว โปรแกรมจะถูกปิดอัตโนมัติ ","runbox.action.autoShutdown.tooltip.enabled":"เสมอติดตั้งการเปิดระบบอาจทำให้รันไทม์ไม่จบเมื่อออกจากข้อมูลการเรียนรู้ อย่างไรก็ตาม จะถูกตั้งเวลาการใช้งานต่อเซสชันของรันไทม์ที่นั่ง {time}เมื่อผ่านไปแล้ว โปรแกรมจะถูกปิดอัตโนมัติ ","runbox.action.grade.dialog.description.error":"เกิดข้อผิดพลาดขณะทำการตรวจคะแนน ","runbox.action.grade.dialog.description.success":"การตรวจคะแนนเสร็จสมบูรณ์แล้วค่ะ.","runbox.action.grade.dialog.title":"ผลการตรวจคะแนน","runbox.action.grade.noti.error":"ระหว่างการตรวจคะแนนโค้ดเกิดข้อผิดพลาดขึ้นในขณะนี้ครับ.","runbox.action.grade.title":"ส่ง","runbox.action.grade.tooltip.onProgress":"การตรวจคำตอบกำลังดำเนินอยู่ โปรดรอสัก{_termCourseRoleEducator}่ค่ะ ตามการปฏิบัติการฝึกปฏิบัติ การตรวจคำตอบอาจใช้เวลาถึง 3 นาทีได้ค่ะ.","runbox.action.reset.dialog.actions.confirm":"เริ่มต้นใหม่","runbox.action.reset.dialog.description":"คุณต้องการรีเซ็ตโค้ดของ Runbox หรือไม่? เมื่อรีเซ็ตแล้วโค้ดของชุดข้อมูลจะถูกเขียนทับด้วยโค้ดเริ่มต้น\nหลังจากรีเซ็ต การเซสชั่นของ Runbox จะถูกรีเฟรชใหม่.","runbox.action.reset.noti.error":"เกิดข้อผิดพลาดขณะกำลังรีเซ็ตโค้ดของลั่นบ็อกซ์ ","runbox.action.reset.title":"รีเซ็ตโค้ด","runbox.action.restart.dialog.actions.confirm":"เริ่มใหม่","runbox.action.restart.dialog.description":"คุณต้องการที่จะเริ่มการทำงานของลันบอกซ์ใหม่หรือไม่?","runbox.action.restart.title":"รีสตาร์ทเรันบ็อกซ์","runbox.action.share.title":"คัดลอก URL ของ Runbox","runbox.action.share.snackbar.copied.fail":"การคัดลอก URL ของรันบ็อกซ์ล้มเหลว โปรดลองอีกครั้งค่ะ.","runbox.action.share.snackbar.copied.success":"คัดลอก URL ของ Runbox แล้วค่ะ.","runbox.action.submitCountInfo.dialog.title":"จำนวนครั้งในการส่งจำกัด","runbox.action.submitCountInfo.dialog.description":"เกินจำนวนครั้งที่สามารถส่งได้แล้วครับ.","runbox.action.submitCountInfo.tooltip.disabled":"ใช้จำนวนครั้งในการส่งทั้งหมดแล้วครับ.","runbox.common.close":"ปิด","runbox.common.retry":"ลองอีกครั้ง","runbox.common.support":"ศูนย์บริการลูกค้า","runbox.context.command.ping.error":"การดำเนินการงานบน Runbox ผิดพลาดในขณะนี้ โปรดลองอีกครั้งในภายหลัง.","runbox.runtime.message.startError":"เมื่อเริ่มต้นการทำงานของรันบ็อกซ์ พบข้อผิดพลาดในขณะนี้ครับ.","runbox.runtime.overlay.assigned.description":"(3 / 3)\nรันบ็อกซ์กำลังทำงานอยู่\nกรุณารอสักครู่!","runbox.runtime.overlay.assigned.description_timeout":"(3 / 3)\nการทำงานของระบบกำลังใช้เวลามากกว่าที่คาดหวัง\nโปรดรอสัก{_termCourseRoleEducator}่เพิ่มเติมโดยไม่ต้องรีเฟรช!","runbox.runtime.overlay.queued.description":"(2 / 3)\nปัจจุบัน {waiters}อยู่ในคิวที่...","runbox.runtime.overlay.queued.description_zero":"(2 / 3)\nเร็ว ๆ นี้การดำเนินงานของรันบ็อกจะเริ่มต้น","runbox.runtime.overlay.terminated.description.default":"พบปัญหาที่ไม่คาดคิดและทำให้ระบบหยุดทำงาน\nโปรดกดปุ่มด้านล่างเพื่อเชื่อมต่อใหม่กับระบบ.","runbox.runtime.overlay.terminated.description.general":"เชื่อมต่อรันไทม์ที่เชื่อมต่อกับรันบ็อกซ์ถูกปิดลงแล้ว\nหากต้องการเชื่อมต่อรันบ็อกซ์อีกครั้ง กรุณากดปุ่มด้านล่าง","runbox.runtime.overlay.terminated.description.os_disk_is_full":"ดิสก์เต็มเพราะได้ลบแพ็คเกจเร็วเรียบร้อยแล้ว อาจใช้เวลาสัก{_termCourseRoleEducator}่ในการปรับปรุงในกรณีนี้","runbox.runtime.overlay.terminated.description.quota_exceeded":"เวลาการใช้งานของไรมฯหมดลง และไรมฯถูกปิดลงแล้วครับ.","runbox.runtime.overlay.terminated.description.quota_per_session_exceeded":"หลังจากผ่านไป 24 ชั่วโมงหลังจากการเริ่มต้นการเรียกใช้ Runbox ได้สิ้นสุดลงแล้ว\nหากต้องการเชื่อมต่อกับ Runbox อีกครั้ง โปรดคลิกที่ปุ่มด้านล่างนี้.","runbox.runtime.overlay.terminated.description.unexpected":"หากปัญหายังคงอยู่ กรุณาติดต่อศูนย์บริการลูกค้าค่ะ.","runbox.runtime.overlay.terminated.restart":"การเชื่อมต่ออีกครั้ง","runbox.runtime.overlay.terminated.title":"เชื่อมต่อไปยังเวลาทำงานถูกยกเลิก","runbox.header.submitInfo":"{isIndividual, select, true {} other {ทีม}} จำนวนครั้งที่ส่ง | {isDailyLimitEnabled, select, true {วันนี้} other {}} {remainCount}/{totalCount}เหลืออยู่"};
2
+
3
+ export { messageTh as default };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { FormattedMessage } from 'react-intl';
3
2
  import { useTimeout } from 'react-use';
3
+ import { useRawEliceIntl } from '@elice/intl';
4
4
  import { Stack, Box, Typography } from '@mui/material';
5
5
  import queueAnimationImage from '../../../assets/queue.gif.js';
6
6
 
@@ -12,6 +12,9 @@ const ASSIGNED_NORMAL_TIMEOUT = 30 * 1e3; // 30 sec
12
12
  //
13
13
  //
14
14
  const RuntimeOverlayAssigned = () => {
15
+ const {
16
+ intl
17
+ } = useRawEliceIntl();
15
18
  const [timeout] = useTimeout(ASSIGNED_NORMAL_TIMEOUT);
16
19
  //
17
20
  //
@@ -41,10 +44,10 @@ const RuntimeOverlayAssigned = () => {
41
44
  whiteSpace: 'pre-wrap',
42
45
  textAlign: 'center'
43
46
  }
44
- }, timeout() ? React.createElement(FormattedMessage, {
45
- id: "runbox.runtime.overlay.assigned.description_timeout"
46
- }) : React.createElement(FormattedMessage, {
47
- id: "runbox.runtime.overlay.assigned.description"
47
+ }, timeout() ? intl.formatMessage({
48
+ id: 'runbox.runtime.overlay.assigned.description_timeout'
49
+ }) : intl.formatMessage({
50
+ id: 'runbox.runtime.overlay.assigned.description'
48
51
  })));
49
52
  };
50
53
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { FormattedMessage } from 'react-intl';
2
+ import { useRawEliceIntl } from '@elice/intl';
3
3
  import { QuestionAnswer } from '@mui/icons-material';
4
4
  import { Stack, Box, Typography, Button } from '@mui/material';
5
5
  import '../contexts/MaterialRunboxApiContext.js';
@@ -13,6 +13,9 @@ import queueAnimationImage from '../../../assets/queue.gif.js';
13
13
  const RuntimeOverlayQueued = ({
14
14
  numWaiters
15
15
  }) => {
16
+ const {
17
+ intl
18
+ } = useRawEliceIntl();
16
19
  const {
17
20
  showMessenger
18
21
  } = useMaterialRunboxContext();
@@ -44,19 +47,18 @@ const RuntimeOverlayQueued = ({
44
47
  whiteSpace: 'pre-wrap',
45
48
  textAlign: 'center'
46
49
  }
47
- }, numWaiters > 0 ? React.createElement(FormattedMessage, {
48
- id: "runbox.runtime.overlay.queued.description",
49
- values: {
50
- waiters: numWaiters
51
- }
52
- }) : React.createElement(FormattedMessage, {
53
- id: "runbox.runtime.overlay.queued.description_zero"
50
+ }, numWaiters > 0 ? intl.formatMessage({
51
+ id: 'runbox.runtime.overlay.queued.description'
52
+ }, {
53
+ waiters: numWaiters
54
+ }) : intl.formatMessage({
55
+ id: 'runbox.runtime.overlay.queued.description_zero'
54
56
  })), typeof showMessenger === 'function' ? React.createElement(Button, {
55
57
  variant: "outlined",
56
58
  startIcon: React.createElement(QuestionAnswer, null),
57
59
  onClick: showMessenger
58
- }, React.createElement(FormattedMessage, {
59
- id: "runbox.common.support"
60
+ }, intl.formatMessage({
61
+ id: 'runbox.common.support'
60
62
  })) : null);
61
63
  };
62
64
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useIntl, FormattedMessage } from 'react-intl';
2
+ import { useRawEliceIntl } from '@elice/intl';
3
3
  import { PlayArrow } from '@mui/icons-material';
4
4
  import { LoadingButton } from '@mui/lab';
5
5
  import { Box, Stack, Typography, Button } from '@mui/material';
@@ -15,7 +15,9 @@ const RuntimeOverlayTerminated = ({
15
15
  reason,
16
16
  startRuntime
17
17
  }) => {
18
- const intl = useIntl();
18
+ const {
19
+ intl
20
+ } = useRawEliceIntl();
19
21
  const {
20
22
  showMessenger
21
23
  } = useMaterialRunboxContext();
@@ -104,8 +106,8 @@ const RuntimeOverlayTerminated = ({
104
106
  }, React.createElement(Typography, {
105
107
  variant: "h6",
106
108
  textAlign: "center"
107
- }, React.createElement(FormattedMessage, {
108
- id: "runbox.runtime.overlay.terminated.title"
109
+ }, intl.formatMessage({
110
+ id: 'runbox.runtime.overlay.terminated.title'
109
111
  })), React.createElement(Typography, {
110
112
  variant: "body2",
111
113
  textAlign: "center",
@@ -123,13 +125,13 @@ const RuntimeOverlayTerminated = ({
123
125
  loading: isRestarting,
124
126
  startIcon: React.createElement(PlayArrow, null),
125
127
  onClick: handleRestart
126
- }, React.createElement(FormattedMessage, {
127
- id: "runbox.runtime.overlay.terminated.restart"
128
+ }, intl.formatMessage({
129
+ id: 'runbox.runtime.overlay.terminated.restart'
128
130
  })), runtimeTerminatedAction.unexpected && typeof showMessenger === 'function' ? React.createElement(Button, {
129
131
  variant: "text",
130
132
  onClick: showMessenger
131
- }, React.createElement(FormattedMessage, {
132
- id: "runbox.common.support"
133
+ }, intl.formatMessage({
134
+ id: 'runbox.common.support'
133
135
  })) : null)));
134
136
  };
135
137
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-runbox",
3
- "version": "1.240401.0",
3
+ "version": "1.240508.0-globalization.0",
4
4
  "description": "User view and editing components of Elice material runbox",
5
5
  "repository": "https://git.elicer.io/elice/frontend/library/elice-material",
6
6
  "license": "UNLICENSED",
@@ -25,6 +25,7 @@
25
25
  "clean": "del-cli \"es/*\" \"cjs/*\" \"dist/*\""
26
26
  },
27
27
  "peerDependencies": {
28
+ "@elice/intl": "*",
28
29
  "@elice/material-shared-types": "*",
29
30
  "@elice/material-shared-utils": "*",
30
31
  "@elice/mui-elements": "^5",
@@ -41,7 +42,6 @@
41
42
  "@mui/material": "^5.10.16",
42
43
  "@tanstack/react-query": "^4.0.0",
43
44
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
44
- "react-intl": "^5.0.0",
45
45
  "react-transition-group": "^4.4.0",
46
46
  "react-use": "^17.0.0"
47
47
  },
@@ -51,13 +51,14 @@
51
51
  "tslib": "^2.6.1"
52
52
  },
53
53
  "devDependencies": {
54
- "@elice/material-shared-types": "1.240401.0",
55
- "@elice/material-shared-utils": "1.240401.0",
54
+ "@elice/intl": "0.240425.0-alpha.7",
55
+ "@elice/material-shared-types": "1.240508.0-globalization.0",
56
+ "@elice/material-shared-utils": "1.240508.0-globalization.0",
56
57
  "@elice/mui-elements": "^5.231130.0",
57
58
  "@elice/mui-system": "^5.230815.0",
58
59
  "@elice/mui-x-snackbar": "^5.231130.0",
59
60
  "@elice/openapi-client-material-runbox": "1.240328.0",
60
- "@elice/runbox-client": "1.240401.0",
61
+ "@elice/runbox-client": "1.240508.0-globalization.0",
61
62
  "@elice/types": "^1.240129.0",
62
63
  "@emotion/react": "^11.10.5",
63
64
  "@emotion/styled": "^11.10.5",
@@ -71,8 +72,7 @@
71
72
  "@types/react": "~17.0.9",
72
73
  "@types/react-transition-group": "^4.4.4",
73
74
  "react": "^17.0.2",
74
- "react-intl": "^5.20.10",
75
75
  "react-use": "^17.2.4"
76
76
  },
77
- "gitHead": "c3c7c033d7524e3d16328399010562ca6c2c3286"
77
+ "gitHead": "e64474c7cab0b6cb852ba08a2076c88e732eec03"
78
78
  }
@@ -1,9 +0,0 @@
1
- 'use strict';
2
-
3
- var en = require('./en.json.js');
4
- var ko = require('./ko.json.js');
5
-
6
-
7
-
8
- exports.en = en.default;
9
- exports.ko = ko.default;
@@ -1,2 +0,0 @@
1
- export { default as en } from './en.json.js';
2
- export { default as ko } from './ko.json.js';