1.主文件:Lang.js
import T from "./T";
import zh_CN from './zh_CN';
import en_US from './en_US';
import 'core-js/fn/object/assign'
let curLang = "zh_CN";
const langLib = {
zh_CN,
en_US,
};
Object.assign(T, langLib[curLang]);
const Lang = {
setLang(lang) {
curLang = lang;
Object.assign(T, langLib[curLang]);
},
getLang() {
return curLang;
}
};
export default Lang;
2.T.js文件
const T = {}
export default T
3.zh_CN.js文件
const zh_CN = {
T_Lang: "语言",
T_Lang_Chinese: "中文",
T_Welcome_Use: "欢迎使用",
T_Platform: "平台",
T_UserName: "用户名",
T_Change_Password: "修改密码",
T_NTP: "网络时间协议",
T_NTP_Mode: "模式",
T_NTP_Time_Zone: "时区",
T_NTP_Server: "NTP服务器",
T_NTP_System_Time: "系统时间",
T_NTP_Auto_Sync: "自动同步",
T_NTP_Auto_Sync_Enable: "启用",
T_NTP_Auto_Sync_Disable: "禁用",
T_NTP_Synchronous_Frequency: "同步频率",
A_NTP_Server_Err: "NTP服务器格式错误,请检查重试",
A_NTP_Synchronous_Frequency_Err: "同步频率格式错误,请输入正确数字",
T_Status: "状态",
T_Status_Tips: "提示",
T_Encoder_Settings: "编码设置",
T_Settings: "设置",
T_Settings_Enable: "启用",
T_Settings_Disable: "禁用",
T_Settings_Automatic: "自动",
T_Settings_Basic_Settings: "基本设置",
T_Settings_Advance_Settings: "高级设置",
A_Settings_Parameter_NoChange: "参数未改变!",
A_Setting_Success: "设置成功!",
A_Remove_Success: "移除成功!",
T_Note: "提示",
T_Input: "输入",
T_Output: "输出",
T_Input_Status: "输入状态",
T_Output_Status: "输出状态",
T_Input_Resolution: "输入分辨率",
T_Output_Resolution: "输出分辨率",
T_Password: "密码",
T_Login: "登录",
T_Logout: "退出登录",
T_License: "授权",
T_Unauthorized: "未授权",
T_Authorized: "已授权",
A_Encryption_Stream_Authorized: "输入是加密流,需要HDCP授权才有输出。",
A_H265_Unauthorized: "H265未授权",
A_CC_Unauthorized: "CC未授权",
A_HDCP_Unauthorized: "HDCP未授权",
A_H265_Authorized: "H265已授权",
A_CC_Authorized: "CC已授权",
A_HDCP_Authorized: "HDCP已授权",
T_HDCP_Test_Mode: "HDCP测试模式",
T_HDCP_Note: "HDCP测试模式仅供测试使用,请确保您对内容拥有权限!",
A_HDCP_Apply: "请确保您对内容拥有权限",
A_Page_Not_Exist: "不好意思,您访问的页面不存在!",
A_404_Tips_0: "您可以",
A_404_Tips_1: "返回上一页",
A_404_Tips_2: "去首页",
A_Operation_Failed: "亲,失败了哟!",
A_UserName_Cannot_Be_Empty: "用户名不能为空,请重新输入!",
T_System: "系统",
T_System_Settings: "系统设置",
T_System_Operation: "系统操作",
T_Other_Operation: "其他操作",
T_Web_Access_Protocol: "网页访问协议",
T_System_Software_Version: "软件版本",
T_System_Hardware_Version: "硬件版本",
T_System_Upgrade: "升级",
T_System_Reboot: "重启",
T_System_Factory_Settings: "恢复出厂设置",
T_System_Version: "版本",
T_System_Log_Export: "导出日志",
T_System_Log_Clear: "清除日志",
T_Certificate_Invalid: "证书、私钥或证书链文件无效,请重新上传!",
A_Rebooting: "设备正在重启,请稍后...",
A_System_Restoring_Factory_Settings: "正在恢复出厂设置,请稍后…",
A_Uploading_File: "正在上传文件...",
A_File_Upgrade_Failed: "升级失败!",
A_Processing_After_Uploaded: "文件上传成功! 设备正在处理上传的文件,请稍后...",
A_Configuration_File_Type_Error: "导入的配置文件类型有误,请重新选择!(.tar)",
A_License_File_Type_Error: "导入的授权文件类型有误,请重新选择!(.license)",
A_Upgrade_File_Type_Error: "导入的升级文件类型有误,请重新选择!(.WVUpgrade)",
A_Service_List_File_Type_Error: "导入的节目列表文件类型有误,请重新选择!(.txt)",
A_Import_Configuration_Failed: "导入参数失败!",
A_Import_Service_List_Failed: "导入节目列表失败!",
A_Import_License_Failed: "导入授权失败!",
T_System_Import_License: "导入授权",
T_System_Export_License: "导出授权",
T_System_Export_Configuration: "导出配置",
T_System_Import_Configuration: "导入配置",
T_Only: "仅",
T_And: "和",
T_Tls_Protocol: "TLS协议",
T_SSL_Ciphers: "允许的SSL密码",
T_Cipher_List: "密码套件",
T_Certificate: "证书",
T_Private_Key: "私钥",
T_Certificate_Chain: "证书链",
T_Recommendation: "建议",
A_Exporting_Configuration: "正在导出参数配置,请稍后...",
A_Exporting_License: "正在导出授权文件,请稍后...",
A_Export_Failed: "导出配置文件失败!",
A_Log_Clear_Success: "日志清除成功!",
A_Import_Success: "导入成功!",
C_Export_Configuration: "是否确定要导出配置?",
C_Export_License_File: "是否确定要导出授权文件?",
C_System_Restore_Factory_Settings: "是否确定要恢复出厂设置?",
C_System_Export_Logs: "是否确定要导出日志?",
C_System_Clear_Logs: "是否确定要清除日志?",
C_Reboot_This_Baseboard: "是否确定要重启设备?",
C_Reboot_This_Module: "是否确定要重启模块?",
C_Reboot_After_Factory_Settings: "恢复出厂设置需重启生效,是否立即重启?",
C_Reboot_After_Import_Configuration: "参数导入成功需重启后生效,是否立即重启?",
C_Reboot_After_Upgrade: "升级成功,需要重启后生效,是否立刻重启生效?",
C_Reboot_After_Import_License: "授权成功,需要重启后生效,是否立刻重启生效?",
C_Reboot_After_Change_Type: "改变类型成功,需要重启后生效,是否立刻重启生效?",
C_Reboot_After_Setting_Parameters: "设置参数成功,需要重启后生效,是否立刻重启生效?",
C_Restore_Factory_Settings: "是否确定要恢复出厂设置?",
C_Apply_Protocol: "应用后需要重启生效,是否应用?",
C_Reset_Protocol: "重置后需要重启生效,是否重置?",
T_Current_Password: "当前密码",
T_New_Password: "新密码",
T_Confirm_Password: "确认密码",
A_Current_Password_Error: (range)=>`旧密码输入有误,密码长度范围:${range}`,
A_New_Password_Error: (range)=>`新密码输入有误,密码长度范围:${range}`,
A_Confirmation_Password_Error: (range)=>`密码确认输入有误,密码长度范围:${range}`,
A_Current_New_Password_Is_Same: "新旧密码不能相同",
A_New_Confirmation_Password_Not_Same: "新密码输入不一致",
A_Password_Changed: "密码修改成功,请重新登录!",
T_Apply: "应用",
T_OK: "确定",
T_Cancel: "取消",
T_Sure: "确认",
T_Delete: "删除",
T_Add: "添加",
T_Edit: "编辑",
T_Delete_All: "全部删除",
T_Reset: "重置",
T_Browse: "浏览",
T_Upload: "上传",
T_Export: "导出",
T_ReturnToLastPage: "返回上一页",
T_BackToHomePage: "去首页",
T_Close: "关闭",
T_Search: "搜索",
T_Clear_Setting: "清除配置",
T_Operation: "操作",
A_Please_Select_File: "请选择文件!",
T_Network: "网络",
T_Network_Streamer: "网络直播盒",
T_Network_IPAddress: "IP地址",
T_Network_SubnetMask: "子网掩码",
T_Network_DefaultGateway: "默认网关",
T_Dynamic_DNS: "动态DNS",
T_Network_MACAddress: "MAC地址",
A_Network_MAC_Conflicted: "MAC地址冲突!",
A_Network_Error_Connection_Timeout: "网络出现问题,连接超时!",
A_IPAddress_FormatError: "IP地址格式错误,请检查后重试!",
A_SubnetMask_FormatError: "子网掩码格式错误,请检查后重试!",
A_DefaultGateway_FormatError: "默认网关格式错误,请检查后重试!",
A_Configuring_Network: "正在配置网络!",
A_Network_Error_Stop_Work: "网络无法正常工作。 请检查网络。",
T_Play_Back: "回放",
T_Play_List: "播放列表",
T_Add_Play_List: "添加播放列表",
T_Add_Files: "添加文件",
T_List_Name: "列表名",
T_File_Name: "文件名",
T_Output_Setting: "输出配置",
T_Current_Play_List: "当前播放列表",
T_Name: "名字",
T_Files: "文件",
A_File_Delete: "删除文件",
A_File_Play: "播放",
T_File_Search: "搜索文件",
A_List_Delete: "删除列表",
C_List_Delete: "继续删除当前播放列表吗?",
T_List_Modify_Name: "修改列表名称",
T_Play_Status: "播放状态",
T_Start_Play_Back: "开始回放",
T_Stop_Play_Back: "暂停回放",
T_Play_Order: "顺序播放",
A_Default_List_Cannot_Delete: "默认列表不可以删除",
A_Default_List_Cannot_Modify: "默认列表不可以修改",
A_File_Cannot_Played: "该文件不可播放",
A_List_Name_Not_Modify: "该列表名称没有修改,请检查后重试!",
T_No_Data: "没有数据",
T_File_Nonexistent: "文件不存在",
T_File_Invalid: "文件无效",
T_File_Font_Color: "字体颜色",
T_New_Name: "新的名字",
T_Play_Mode: "播放模式",
A_File_Invalid: "流式传输失败,请删除无效的媒体文件!",
A_PlayList_Empty: "当前列表为空!请添加文件",
A_No_Selected_Files: "未选择文件!",
T_Information: "信息",
A_Error: "错误",
T_Encode: "编码",
T_Status_Effective_Bitrate: "有效码率",
T_Status_Total_Bitrate: "总码率",
T_Encode_Video_Resolution: "视频分辨率",
T_Encode_Video_Type: "视频编码类型",
T_Encode_Video_Bitrate: "视频编码码率",
T_Encode_Video_Mode: "视频编码模式",
T_Encode_Video_Max_Bitrate: "视频最大编码码率",
T_Encode_Video_Min_Bitrate: "视频最小编码码率",
T_Encode_GOP_Size: "GOP大小",
T_Encode_Profile: "Profile",
T_Encode_Video_Aspect_Ratio: "视频宽高比",
T_Encode_VideoFrameRate: "视频帧率",
T_Encode_Video: "视频",
T_Resolution: "分辨率",
T_Encode_Audio_Type: "音频编码类型",
T_Encode_Audio_Bitrate: "音频编码码率",
T_Encode_Audio_Sampling_Bitrate: "音频采样率",
T_Encode_Audio: "音频",
T_Encode_Audio_Gain: "音频增益(分贝)",
T_AC3_Descriptor: "AC3描述子",
T_EAC3_Descriptor: "EAC3描述子",
T_Status_Video_Bitrate: "视频码率",
T_Status_Audio_Bitrate: "音频码率",
T_Status_Encryption: "加密状态",
T_Status_Encrypted: "加密",
T_Status_Unencrypted: "未加密",
T_Encrypted_Signal: "加密的信号",
T_Buffer: "缓冲",
A_Video_Bitrate_Err: (min,max)=>`视频编码码率输入有误,请重新输入一个${min}到${max}之间的整数!`,
A_GOP_Size_Err: (min,max)=>`GOP大小输入有误,请重新输入一个${min}到${max}之间的整数!`,
T_RTMP_Enable: "启用RTMP",
T_RTMP_Serverip: "URL",
T_RTMP_Serverport: "端口",
T_RTMP_Appname: "目录名",
T_RTMP_Streamname: "上传节点",
T_Encryt: "认证",
T_RTMP_Username: "用户名",
T_RTMP_Password: "密码",
T_RTSP_Streamname: "流名称",
A_RTMP_Serverport_Err: (min, max) => `RTMP 服务器端口值必须介于[${min}, ${max}].`,
A_RTSP_Serverport_Err: (min, max) => `RTSP 服务器端口值必须介于[${min}, ${max}].`,
A_Video_Frame_Err: (min, max) => `视频帧率输入有误,请重新输入一个${min}到${max}之间的整数!`,
T_UDP_Enable: "启用HUDP",
T_UDP_Serverip: "地址",
T_UDP_Serverport: "端口",
A_UDP_Serverport_Err: (min, max) => `UDP 服务器端口值必须介于[${min}, ${max}].`,
T_Stream: "流",
T_Live_Stream: "直播",
T_Record_Stream: "录播",
T_Start_Live_Stream: "启动直播",
T_Stop_Live_Stream: "停止直播",
T_Start_Recording: "开始录播",
T_Stop_Recording: "停止录播",
T_Output_File: "输出文件",
T_Init: "初始化",
T_Init_Status: "初始化状态",
T_Record: "录播",
T_Record_Settings: "录播设置",
T_Advanced: "高级",
T_General: "普通",
T_Presets: "视频流格式",
T_StreamName: "流名称",
T_Record_Mode: "录播模式",
T_StorageDevice: "存储类型",
T_Record_name: "录播名称",
T_Record_Size: "录播大小",
T_Record_Time: "录播时间",
T_Loop_Enable: "循环",
T_Record_Enable: "录制",
T_Broadcast: "广播节目/",
T_Broadcast_LiveStream: "直播节目/推流设置",
T_Parameter_Info: "参数信息",
T_Local_Infomation: "当前处于",
A_LeavePage_Tip: "您确定要离开此页面吗? 您的更改将被丢弃。",
T_Signal_Source: "信号源",
T_Connect_Successed: "连接成功",
T_Connect_Failed: "连接失败",
T_Address_Mode: "网络模式",
T_Secondary_Nameserver: "辅域名服务器",
T_Primary_Nameserver: "主域名服务器",
T_HLS_Enable: "启用HLS",
T_ServerPath: "存放路径",
T_Tip_User_Defined: "请在高级页面配置参数",
C_Remove_USB: "确定安全移除USB?",
C_Remove_SD: "确定安全移除SD?",
A_Record_Fail: "录制失败!",
T_Record_USBSD_Tip: "请务必等录制结束且安全移除移动设备后再拔出USB设备或SD卡.",
T_Audio_Source: "音源",
T_NOt_Inserted: "未插入",
T_Free: "空闲",
T_Recording: "正在录制",
T_Recorded: "录制完成",
T_Safety_Remove: "安全移除",
T_SD_Not_Written: "NO",
T_USB_Not_Written: "NO",
T_USB_File_System: "USB文件系统",
T_SD_File_System: "SD文件系统",
T_Written_Permission: "写权限",
T_License_Information: "授权信息",
A_Record_Size_Err: (min,max)=>`录制大小输入有误,请重新输入一个${min}到${max}之间的整数!`,
A_Time_Format_Error: "时间格式不正确, 正确格式:(HH:mm:ss)",
T_Serial_License: "串口授权",
A_Browser_Version_Tip: "由于浏览器版本低,网页功能可能无法使用,",
A_Browser_Version_Tip1: "建议使用IE10 +,最新的Chrome,最新的Firefox浏览器!",
T_Img_Format_Note: "透明背景图片叠加时,只支持带Alpha通道的bmp格式图片",
T_Pic: "图",
T_Easy_To_Use_Mode: "Easy to use模式",
C_Exit_Easy_Mode: "请在登录之前退出easy to use模式,你确定要退出吗?",
C_Enter_Easy_Mode: "确定进入Easy to use 模式吗?",
T_Please_Login: "请登录",
T_Mode: "模式",
T_Authorize_NB200E: "设备授权",
A_User_Code_Error: "用户授权码已失效,请重新获取!",
T_User_Watch_Address: "用户观看地址",
T_Live_Auth: "直播授权",
T_YouTube_Success_Auth: "成功通过身份验证! 单击确认。",
T_YouTube_Next_Step: "执行上述步骤后,您将能够继续。",
T_YouTube_Use_Impulse: "使用YouTube在您的Impulse....",
T_Enter_Code: "1. 粘贴校验码:",
T_Go_To_URL: "2. 跳转URL:",
T_Allow_Impulse_Access_Account: "3. 然后允许Impulse访问帐户。",
T_Enter_Watch_Live: "进入观看直播",
T_Go_To_Live_Title: "进入观看直播",
T_Copy: "点击复制",
T_Copied_Success: "复制成功!",
T_LogoutYouTubeAccount: "退出",
T_Logout_Title: "退出YouTube账号",
T_YourAccount: "您的YouTube账号",
T_Live_Status: "直播状态",
T_Continue: "继续",
T_No_Signal: "无信号",
T_Facebook_Use_Impulse: "使用Facebook在您的Impulse....",
T_Logout_Title_Facebook: "退出Facebook账号",
T_YourAccount_Facebook: "您的Facebook账号",
T_Refresh: "刷新",
T_Refresh_Success: "刷新成功!",
T_Title: "标题",
T_PrivacyStatus: "隐私状态",
T_No_Facebook: "没有Facebook",
T_Available: "可用",
T_Created: "并创建",
T_Press_Refresh: '按"刷新"',
T_Please_Login_To: "请登录",
A_YouTube_Resolution: "YouTube仅支持240p、360p、480p、720p、1080p、1440p、4k/2160p,请选择正确的分辨率!",
T_Overlay_Settings: "叠加设置",
T_Overlay_Text: "文字叠加",
T_Overlay_Picture: "图片叠加",
T_Overlay_Mode: "叠加模式",
T_Show_Title: "显示标题",
T_Title_Text: "标题文本",
T_Show_Time: "显示时间",
T_Font: "字体",
T_Font_Size: "字体大小",
T_Text: "文本",
T_Color: "颜色",
T_Team1_Name: "队 1 名称",
T_Team1_Score: "队 1 得分",
T_Team2_Name: "队 2 名称",
T_Team2_Score: "队 2 得分",
T_Location: "位置",
T_Location_X: "位置 X",
T_Location_Y: "位置 Y",
C_OsdSetting_UploadImg_Clear: "是否要清空已上传图片?",
A_Clear_Setting_Success: "清除成功!",
A_UploadingImgFile: "正在上传图片...",
A_SelectImgFile: "请选择图片!",
T_UploadPicture: "上传图片",
A_UploadSuccess: "上传成功!",
A_UploadingFailed: "上传文件失败",
A_File_Type_Err: "文件类型有误,请重新选择!(.bmp, .jpg, .jpeg)",
A_OSDX_Err: (min,max)=>`OSD X输入有误,请重新输入一个${min}到${max}之间的整数!`,
A_OSDY_Err: (min,max)=>`OSD Y输入有误,请重新输入一个${min}到${max}之间的整数!`,
A_OSDWidth_Err: (min,max)=>`OSD 宽度输入有误,请重新输入一个${min}到${max}之间的整数!`,
A_OSDHeigh_Err: (min,max)=>`OSD 高度输入有误,请重新输入一个${min}到${max}之间的整数!`,
A_SubtitleWidth_Err: (min,max)=>`大小宽度输入有误,请重新输入一个${min}到${max}之间的整数!`,
A_SubtitleHeigh_Err: (min,max)=>`大小高度输入有误,请重新输入一个${min}到${max}之间的整数!`,
A_String_Too_Long: (max) => `输入有误,请重新输入长度不超过${max}的文本`,
A_MultipleOfTwo: "数值必须是2的整数倍.",
T_OsdSetting_UploadImg_Clear: "清空已上传图片",
T_Switch: "图片开关",
T_Position: "位置",
T_Position_X: "位置 X",
T_Position_Y: "位置 Y",
T_Size_W: "宽",
T_Size_H: "高",
T_Subtitle: "字幕",
A_Scores_Err: "分数输入有误,必须为整数!",
T_Overlay_Text1: "日期/时间/标题",
T_Overlay_Text2: "叠加时间,日期和文字",
T_Overlay_Text3: '最多24个字符; 此模式不支持某些字符(例如“”@ ^#)切换到标题仅覆盖任何文本。',
T_Overlay_Text4: "仅限标题",
T_Overlay_Text5: "叠加文字",
T_Overlay_Text6: "得分了",
T_Overlay_Text7: "用团队名称和活跃分数叠加得分板",
T_Select_Picture: "请选择图片",
T_Selected_Picture: "已选中",
T_UnSelected_Picture: "未上传图片",
A_Font_Size_Err: (min,max)=>`字体大小输入有误,请重新输入一个${min}到${max}之间的整数!`,
T_Version_Description: "版本描述",
T_Current_Version: "当前版本",
T_Latest_Version: "最新版本",
T_Detected_Latest_Version: "检测到最新版本",
T_Upgrade_tips: "设备升级中,请勿断电,关闭浏览器...",
T_Whether_Upgrade: "是否升级?",
T_Check_Version: "检测版本",
T_Already_Latest_Version: "已是最新版本",
};
export default zh_CN;
4.en_US.js
import {T} from "../../app";
const en_US = {
T_Lang: "Language",
T_Lang_Chinese: "Chinese",
T_Welcome_Use: "Welcome to use",
T_Platform: "Platform",
T_UserName: "Username",
T_Change_Password: "Password",
T_NTP: "NTP",
T_NTP_Mode: "Mode",
T_NTP_Time_Zone: "Time Zone",
T_NTP_Server: "NTP Server",
T_NTP_System_Time: "System Time",
T_NTP_Auto_Sync: "Auto Sync",
T_NTP_Auto_Sync_Enable: "Enable",
T_NTP_Auto_Sync_Disable: "Disable",
T_NTP_Synchronous_Frequency: "Sync Frequency",
A_NTP_Server_Err: "NTP Server format error, please check and try again",
A_NTP_Synchronous_Frequency_Err: "Format error of synchronization frequency, please input correct number",
//状态
T_Status: "Status",
T_Status_Tips: "Tips",
//设置
T_Settings: "Settings",
T_Settings_Enable: "Enable",
T_Settings_Disable: "Disable",
T_Settings_Automatic: "Automatic",
T_Settings_Basic_Settings: "Basic Settings",
T_Settings_Advance_Settings: "Advance Settings",
A_Settings_Parameter_NoChange: "No parameter changed!",
A_Setting_Success: "Setting Success!",
A_Remove_Success: "Remove Success!",
T_Note: "Note",
//输入输出
T_Input: "Input",
T_Output: "Output",
T_Input_Status: "Input Status",
T_Output_Status: "Output Status",
T_Input_Resolution: "Input Resolution",
T_Output_Resolution: "Output Resolution",
//用户相关
T_Password: "Password",
T_Login: "Login",
T_Logout: "Log-out",
T_License: "License",
T_Unauthorized: "Unauthorized",
T_Authorized: "Authorized",
A_Encryption_Stream_Authorized: "Input is encrypted stream, need HDCP authorization for output. ",
A_H265_Unauthorized: "H265 Unauthorized",
A_CC_Unauthorized: "CC Unauthorized",
A_HDCP_Unauthorized: "HDCP Unauthorized",
A_H265_Authorized: "H265 Authorized",
A_CC_Authorized: "CC Authorized",
A_HDCP_Authorized: "HDCP Authorized",
T_HDCP_Test_Mode: "HDCP Test Mode",
T_HDCP_Note: "HDCP test mode is for test purposes only. Please make sure that you have rights for the content!",
A_HDCP_Apply: "Please confirm you have rights for the content",
A_Page_Not_Exist: "Sorry, the browsed page does not exist!",
A_404_Tips_0: "You Can",
A_404_Tips_1: "Return to last page",
A_404_Tips_2: "Back to homepage",
A_Operation_Failed: "Dear user, operation failed!",
A_UserName_Cannot_Be_Empty: "Username can\'t be empty, please input again!",
T_System: "System",
T_System_Settings: "System Settings",
T_System_Log: "Log",
T_System_Log_Export: "Log Export",
T_System_Log_Clear: "Log Clear",
T_System_Software_Version: "Software Version",
T_System_Hardware_Version: "Hardware Version",
T_System_Operation: "System Operation",
T_Other_Operation: "Other Operation",
T_Web_Access_Protocol: "Web Access Protocol",
T_System_Upgrade: "Upgrade",
T_System_Configuration: "Configuration",
T_System_Import_Configuration: "Import Config",
T_System_Export_Configuration: "Export Config",
T_System_Import_License: "Import License",
T_System_Export_License: "Export License",
T_System_Reboot: "Reboot",
T_System_Factory_Settings: "Factory Settings",
T_Other_Operations: "Other Operations",
T_System_Version: "Version",
T_Only: "Only",
T_And: "and",
T_Tls_Protocol: "TLS Protocol",
T_SSL_Ciphers: "Allowed SSL ciphers",
T_Cipher_List: "Cipher List",
T_Certificate: "Certificate",
T_Private_Key: "Private Key",
T_Certificate_Chain: "Certificate chain",
T_Certificate_Invalid: "Certificate, Private Key or Certificate chain file is invalid, please upload again!",
T_Recommendation: "Recommendation",
A_Rebooting: "Rebooting now, please wait...",
A_System_Restoring_Factory_Settings: "Restoring factory settings...",
A_Uploading_File: "Uploading file...",
A_File_Upgrade_Failed: "File upgrade failed!",
A_Processing_After_Uploaded: "File uploaded successfully! Processing the uploaded file now, Please wait...",
A_Configuration_File_Type_Error: "Configuration file type error, Please reselect! (.tar)",
A_License_File_Type_Error: "License file type error, Please reselect! (.license)",
A_Upgrade_File_Type_Error: "Upgrade file type error, Please reselect! (.WVUpgrade)",
A_Service_List_File_Type_Error: "Service list file type error, Please reselect! (.txt)",
A_Import_Configuration_Failed: "Import configuration failed!",
A_Import_License_Failed: "Import license failed!",
A_Exporting_Configuration: "Exporting configuration, please wait...",
A_Exporting_License: "Exporting license, please wait...",
A_Export_Failed: "Failed to export the configuration failed.",
A_Log_Clear_Success: "Log Clear Success!",
A_Import_Success: "Import success!",
C_Export_Configuration: "Export configuration?",
C_Export_License_File: "Export license file?",
C_System_Restore_Factory_Settings: "Restore factory settings?",
C_System_Export_Logs: "Export logs?",
C_System_Clear_Logs: "Clear logs?",
C_Reboot_This_Baseboard: "Reboot this Baseboard?",
C_Reboot_This_Module: "Reboot this module?",
C_Reboot_After_Factory_Settings: "Factory settings takes effect after reboot, reboot now?",
C_Reboot_After_Import_Configuration: "Imported configuration takes effect after reboot, reboot now?",
C_Reboot_After_Upgrade: "Upgrade success, take effect after reboot, reboot now?",
C_Reboot_After_Import_License: "Licensed success, take effect after reboot, reboot now?",
C_Reboot_After_Change_Type: "Change type success, take effect after reboot, reboot now?",
C_Reboot_After_Setting_Parameters: "Setting parameters success, take effect after reboot, reboot now?",
C_Restore_Factory_Settings: "Restore factory settings?",
C_Apply_Protocol: "Need to reboot after application to take effect, apply now?",
C_Reset_Protocol: "Need to reboot after reset to take effect, reset now?",
T_Current_Password: "Current Password",
T_New_Password: "New Password",
T_Confirm_Password: "Confirm Password",
A_Current_Password_Error: (range)=>`Current password input error, password length range:${range}`,
A_New_Password_Error: (range)=>`New password input error, password length range:${range}`,
A_Confirmation_Password_Error: (range)=>`Confirmation password input error, password length range:${range}`,
A_Current_New_Password_Is_Same: "Current and new password must be different!",
A_New_Confirmation_Password_Not_Same: "New and Confirmation password are not the same!",
A_Password_Changed: "Password changed successfully, please login again!",
A_UserName_Error: (range)=>`UsernName input error, username length rangs:${range}character`,
T_Apply: "Apply",
T_OK: "OK",
T_Cancel: "Cancel",
T_Sure: "Sure",
T_Delete: "Delete",
T_Add: "Add",
T_Edit: "Edit",
T_Delete_All: "Delete All",
T_Reset: "Reset",
T_Browse: "Browse",
T_Upload: "Upload",
T_Export: "Export",
T_ReturnToLastPage: "Return to last page",
T_BackToHomePage: "Back to homepage",
T_Close: "Close",
T_Search: "Search",
T_Clear_Setting: "Clear Config",
T_Operation: "Operation",
A_Please_Select_File: "Please Select File!",
T_Network: "Network",
T_Network_Streamer: "Network Streamer",
T_Network_IPAddress: "IP Address",
T_Network_SubnetMask: "Subnet Mask",
T_Network_DefaultGateway: "Default Gateway",
T_Dynamic_DNS: "Dynamic DNS",
T_Network_MACAddress: "MAC Address",
A_Network_MAC_Conflicted: "MAC Address conflicted!",
A_Network_Error_Connection_Timeout: "Network error, connection timeout!",
A_IPAddress_FormatError: "Incorrect IP address format, please verify and try again!",
A_SubnetMask_FormatError: "Incorrecct subnet mask format, please verify and try again!",
A_DefaultGateway_FormatError: "Incorrect default gateway format, please verify and try again!",
A_Configuring_Network: "Configuring Network!",
A_Network_Error_Stop_Work: "The network is not working. Please check the network.",
T_Play_Back: "Play Back",
T_Play_List: "Play List",
T_Add_Play_List: "Add Play List",
T_Add_Files: "Add Files",
T_List_Name: "List Name",
T_File_Name: "File Name",
T_Output_Setting: "Output Settings",
T_Current_Play_List: "Current Play List",
T_Name: "Name",
A_File_Play: "Play",
T_File_Search: "Search File",
A_File_Delete: "Delete file",
A_List_Delete: "Delete Play List",
C_List_Delete: "Continue to remove the current play list?",
T_List_Modify_Name: "Modify Play List Name",
T_Play_Status: "Play Status",
T_Start_Play_Back: "Start Play Back",
T_Stop_Play_Back: "Stop Play Back",
T_Play_Order: "Order",
A_Default_List_Cannot_Delete: "Default list cannot be deleted",
A_Default_List_Cannot_Modify: "Default list cannot be modified",
A_File_Cannot_Played: "The file is unable to play",
A_List_Name_Not_Modify: "The name of the list is not modified, please check it and try again!",
T_No_Data: "No Data",
T_File_Nonexistent: "Nonexistent file",
T_File_Invalid: "Invalid file",
T_File_Font_Color: "Font Color",
T_New_Name: "New Name",
T_Play_Mode: "Play Mode",
A_File_Invalid: "Streaming failed, please delete invalid media files!",
A_PlayList_Empty: "The current list is empty! Please add a file.",
A_No_Selected_Files: "File not selected!",
T_Information: "Information",
A_Error: "Error",
T_Encode: "Encode",
T_Status_Effective_Bitrate: "Effective Bit Rate",
T_Encode_Video_Resolution: "Video Resolution",
T_Encode_Video_Type: "Video Type",
T_Encode_Video_Bitrate: "Video Bit Rate",
T_Encode_Video_Mode: "Video Mode",
T_Encode_Video_Max_Bitrate: "Video Max Bit Rate",
T_Encode_Video_Min_Bitrate: "Video Min Bit Rate",
T_Encode_GOP_Size: "GOP Size",
T_Encode_Profile: "Profile",
T_Encode_Video_Aspect_Ratio: "Video Aspect Ratio",
T_Encode_Video: "Video",
T_Encode_VideoFrameRate: "Frame Rate",
T_Easy_To_Use_Mode: "Easy to use mode",
C_Exit_Easy_Mode: "Please exit easy to use mode before login, do you want to exit?",
C_Enter_Easy_Mode: "Are you sure to enter easy to use mode?",
T_Encode_Audio_Type: "Audio Type",
T_Encode_Audio_Bitrate: "Audio Bit Rate",
T_Encode_Audio_Gain: "Audio Gain(db)",
T_Encode_Audio_Sampling_Bitrate: "Audio Sampling Rate",
T_Encode_Audio: "Audio",
T_AC3_Descriptor: "AC3 Descriptor",
T_EAC3_Descriptor: "EAC3 Descriptor",
T_Buffer: "Buffer",
T_Status_Video_Bitrate: "Video Bit Rate",
T_Status_Audio_Bitrate: "Audio Bit Rate",
T_Status_Encryption: "Encryption",
T_Status_Encrypted: "Encrypted",
T_Status_Unencrypted: "Unencrypted",
T_Encrypted_Signal: "Encrypted Signal",
A_Video_Bitrate_Err: (min,max)=>`Video bit rate input error, Please re-enter a integer between ${min} and ${max}!`,
A_GOP_Size_Err: (min,max)=>`GOP size input error, Please re-enter a integer between ${min} and ${max}!`,
T_RTMP_Enable: "Enable RTMP",
T_RTMP_Serverip: "URL",
T_RTMP_Serverport: "Port",
T_RTMP_Appname: "Directory",
T_RTMP_Streamname: "Stream Key",
T_Audio_Source: "Audio Source",
T_Encryt: "Authentication",
T_RTMP_Username: "Username",
T_RTMP_Password: "Password",
T_RTSP_Streamname: "Stream Name",
A_RTMP_Serverport_Err: (min, max) => `Please input correct RTMP Server Port ranging: [${min}, ${max}]!`,
A_RTSP_Serverport_Err: (min, max) => `Please input correct RTSP Server Port ranging: [${min}, ${max}]!`,
A_Video_Frame_Err: (min, max) => `Video frame rate input error, Please re-enter a integer between ${min} and ${max}.`,
T_UDP_Enable: "Enable UDP",
T_UDP_Serverip: "IP",
T_UDP_Serverport: "Port",
A_UDP_Serverport_Err: (min, max) => `Please input correct UDP Server Port ranging: [${min}, ${max}]!`,
T_Stream: "Stream",
T_Live_Stream: "Live Streaming ",
T_Record_Stream: "Record ",
T_Start_Live_Stream: "Start Streaming",
T_Stop_Live_Stream: "Stop Streaming",
T_Start_Recording: "Start Recording",
T_Stop_Recording: "Stop Recording",
T_Output_File: "Output File",
T_Init: "Init",
T_Init_Status: "Init Status",
T_Record: "Record ",
T_Record_Settings: "Record Setting",
T_Advanced: "Advanced ",
T_General: "General ",
T_Presets: "Video Profile",
T_StreamName: "Stream Name",
T_Record_Mode: "Record Mode",
T_StorageDevice: "Storage Device",
T_Record_Size: "Record Size",
T_Record_name: "Record Name",
T_Record_Time: "Record Time",
T_Loop_Enable: "Loop",
T_Record_Enable: "Record",
T_Broadcast: "Broadcast/",
T_Broadcast_LiveStream: "Live Service/Streaming Setting",
T_Parameter_Info: "Parameter Information",
T_Local_Infomation: "Current location",
A_LeavePage_Tip: "Are you sure to leave from this page? Your configuration change will be discarded.",
T_Signal_Source: "Signal source",
T_Connect_Successed: "Connection Success!",
T_Connect_Failed: "Connection Failed!",
T_Address_Mode: "Network Mode",
T_Secondary_Nameserver: "Secondary DNS",
T_Primary_Nameserver: "Primary DNS",
T_HLS_Enable: "Enable HLS",
T_ServerPath: "HLS URL",
T_Written_Permission: "Write Permission",
T_Tip_User_Defined: "Please configure in advanced setting!",
C_Remove_USB: "Safely remove USB drive?",
C_Remove_SD: "Safely remove SD drive?",
A_Record_Fail: "Recording failed!",
T_Record_USBSD_Tip: "Be sure to wait for the recording to finish and remove it safely before unplugging USB or SD.",
T_NOt_Inserted: "Not Inserted",
T_Free: "Idle",
T_Recording: "Recording now",
T_Recorded: "Recording completed",
T_Safety_Remove: "Safely Remove",
T_SD_Not_Written: "NO",
T_USB_Not_Written: "NO",
T_USB_File_System: "USB File System",
T_SD_File_System: "SD File System",
T_License_Information: "License Information",
A_Record_Size_Err: (min,max)=>`Record size input error, please re-enter an integer between ${min} and ${max}!`,
A_Time_Format_Error: "Time format error, the correct format is:(HH:mm:ss)",
T_Serial_License: "Serial License",
A_Browser_Version_Tip: "Because the browser version is tio low, the web page function may can not use,",
A_Browser_Version_Tip1: "it is recommended to use IE10+,the latest chrome, the latest Firefox browser!",
T_Please_Login: "Please Login",
T_Mode: "Mode",
T_Authorize_NB200E: "Authorize Your Device",
A_User_Code_Error: "User code expired, Please regain!",
T_User_Watch_Address: "User watch address",
T_Live_Auth: "Live Authorization",
T_YouTube_Success_Auth: "Successfully Authenticated! Click Continue.",
T_YouTube_Next_Step: "You will be able to Continue after you perform the above steps.",
T_YouTube_Use_Impulse: "To use YouTube with your device....",
T_Enter_Code: "1. Copy this code:",
T_Go_To_URL: "2. Go to the URL and paste:",
T_Allow_Impulse_Access_Account: "3. Then allow the device access to account.",
T_Enter_Watch_Live: "Enter to watch live",
T_Go_To_Live_Title: "Go To Live",
T_Copy: "Click to Copy",
T_Copied_Success: "Copied",
T_LogoutYouTubeAccount: "Logout",
T_Logout_Title: "Logout YouTube Account",
T_YourAccount: "YouTube Account",
T_Live_Status: "Live Status",
T_Continue: "Continue",
T_No_Signal: "No Signal",
T_Title: "Title",
T_PrivacyStatus: "Privacy Status",
T_Facebook_Use_Impulse: "To use Facebook with your device....",
T_Logout_Title_Facebook: "Logout Facebook Account",
T_YourAccount_Facebook: "Facebook Account",
T_Refresh: "Refresh",
T_Refresh_Success: "Refresh Success!",
T_No_Facebook: "NO Facebook",
T_Available: "are available",
T_Created: "and create an",
T_Press_Refresh: 'Then press "Refresh."',
T_Please_Login_To: "Please Login to",
A_YouTube_Resolution: "YouTube only supports 240p, 360p, 480p, 720p, 1080p, 1440p, 4k/2160p, please choose the correct resolution!",
T_Overlay_Settings: "Overlay Settings",
T_Overlay_Text: "Text Overlay",
T_Overlay_Picture: "Picture Overlay",
T_Overlay_Mode: "Overlay Mode",
T_Show_Title: "Show Title",
T_Title_Text: "Title Text",
T_Show_Time: "Show Time",
T_Font: "Font",
T_Font_Size: "Font Size",
T_Text: "Text",
T_Color: "Color",
T_Team1_Name: "Team 1 Name",
T_Team1_Score: "Team 1 Score",
T_Team2_Name: "Team 2 Name",
T_Team2_Score: "Team 2 Score",
T_Location: "Location",
T_Location_X: "Location X",
T_Location_Y: "Location Y",
C_OsdSetting_UploadImg_Clear: "Do you want to empty the uploaded pictures ?",
A_Clear_Setting_Success: "Clear Success!",
A_UploadingImgFile: "Uploading img file...",
A_SelectImgFile: "Please select the img file!",
T_UploadPicture: "Upload Image",
A_UploadSuccess: "Upload successfully!",
A_UploadingFailed: "Uploading Failed.",
A_File_Type_Err: "File type error, Please reselect! (.bmp, .jpg, .jpeg)",
A_OSDX_Err: (min,max)=>`OSD X input error, Please re-enter a integer between ${min} and ${max}!`,
A_OSDY_Err: (min,max)=>`OSD Y input error, Please re-enter a integer between ${min} and ${max}!`,
A_OSDWidth_Err: (min,max)=>`OSD Width input error, Please re-enter a integer between ${min} and ${max}!`,
A_OSDHeigh_Err: (min,max)=>`OSD Height input error, Please re-enter a integer between ${min} and ${max}!`,
A_SubtitleWidth_Err: (min,max)=>`Size Width input error, Please re-enter a integer between ${min} and ${max}!`,
A_SubtitleHeigh_Err: (min,max)=>`Size Height input error, Please re-enter a integer between ${min} and ${max}!`,
A_String_Too_Long: (max) => `input error, Please re-enter a string which length is less than ${max}`,
A_MultipleOfTwo: "The value must be an integer multiple of 2.",
T_OsdSetting_UploadImg_Clear: "Empty the uploaded pictures",
T_Switch: "Picture Switch",
T_Position: "Position",
T_Position_X: "Position X",
T_Position_Y: "Position Y",
T_Size_W: "Size Width",
T_Size_H: "Size Height",
T_Subtitle: "Subtitle",
A_Scores_Err: "Score input error, The value must be an integer!",
T_Overlay_Text1: "Date/Time/Title",
T_Overlay_Text2: "Overlay time, date and text",
T_Overlay_Text3: '24 characters max; some character(e.g,""@^#) are not supported in this mode switch to Title only to overlay any text.',
T_Overlay_Text4: "Title Only",
T_Overlay_Text5: "Overlay text",
T_Overlay_Text6: "Score",
T_Overlay_Text7: "Overlay a score board with team names and active scores",
T_Select_Picture: "Select Picture",
T_Selected_Picture: "Selected",
T_UnSelected_Picture: "Image not uploaded",
A_Font_Size_Err: (min,max)=>`Font Size input error, Please re-enter a integer between ${min} and ${max}!`,
T_Img_Format_Note: "When the transparent background image is superimposed, only bmp format images with alpha channel are supported.",
T_Pic: "Pic",
T_Version_Description: "Version Description",
T_Current_Version: "Current Version",
T_Latest_Version: "Latest Version",
T_Detected_Latest_Version: "Detected the latest version",
T_Upgrade_tips: "Do not power off and close bower the unit during upgrade....",
T_Whether_Upgrade: "Whether to upgrade?",
T_Check_Version: "Check Version",
T_Already_Latest_Version: "Already the latest version",
};
export default en_US;
5.运用
import Lang from Lang.js
componentDidMount() {
....
success: (data)=>{
Lang.setLang(data["lang"]);
}
}
2.在某组件中使用
import Lang from Lang.js
render() {
return (
<div className="form-group row">
<label
className="col-6 col-sm-3 col-form-label col-form-label-sm">{T.T_NTP_System_Time}: </label>
<div className="col-6 col-sm-9">
<span style={{fontSize: '14px'}}>
{this.formatTime(systemTime)}
</span>
</div>
</div>
)
}