2024-01-23 21:14:53 +08:00
export type Item = {
2023-05-15 08:51:32 +08:00
value : number | string
name : string
2024-02-22 16:06:17 +08:00
example : string
2023-05-15 08:51:32 +08:00
}
2024-01-23 21:14:53 +08:00
2024-02-23 14:31:06 +08:00
export type I18nText = {
'en-US' : string
'zh-Hans' : string
'pt-BR' : string
'es-ES' : string
'fr-FR' : string
'de-DE' : string
'ja-JP' : string
'ko-KR' : string
'ru-RU' : string
'it-IT' : string
'uk-UA' : string
2024-03-13 15:54:47 +08:00
'vi-VN' : string
2024-04-10 22:05:27 +08:00
'de_DE' : string
2024-04-26 21:10:23 +08:00
'zh_Hant' : string
2024-05-14 17:48:24 +08:00
'ro-RO' : string
2024-05-07 15:41:57 +08:00
'pl-PL' : string
2024-02-23 14:31:06 +08:00
}
2024-01-24 11:08:11 +08:00
2024-01-23 21:14:53 +08:00
export const languages = [
2023-05-15 08:51:32 +08:00
{
value : 'en-US' ,
2024-04-10 22:05:27 +08:00
name : 'English (United States)' ,
2024-05-14 17:48:24 +08:00
prompt_name : 'English' ,
2024-02-22 16:06:17 +08:00
example : 'Hello, Dify!' ,
2024-02-23 14:31:06 +08:00
supported : true ,
2023-05-15 08:51:32 +08:00
} ,
{
value : 'zh-Hans' ,
name : '简体中文' ,
2024-05-14 17:48:24 +08:00
prompt_name : 'Chinese Simplified' ,
2024-02-22 16:06:17 +08:00
example : '你好, Dify! ' ,
2024-02-23 14:31:06 +08:00
supported : true ,
2023-05-15 08:51:32 +08:00
} ,
2024-04-26 21:10:23 +08:00
{
value : 'zh-Hant' ,
name : '繁體中文' ,
2024-05-14 17:48:24 +08:00
prompt_name : 'Chinese Traditional' ,
2024-04-26 21:10:23 +08:00
example : '你好, Dify! ' ,
supported : true ,
} ,
2024-01-23 21:14:53 +08:00
{
value : 'pt-BR' ,
2024-04-10 22:05:27 +08:00
name : 'Português (Brasil)' ,
2024-05-14 17:48:24 +08:00
prompt_name : 'Portuguese' ,
2024-02-22 16:06:17 +08:00
example : 'Olá, Dify!' ,
2024-02-23 14:31:06 +08:00
supported : true ,
2024-01-23 21:14:53 +08:00
} ,
2024-02-16 20:05:14 +08:00
{
value : 'es-ES' ,
2024-04-10 22:05:27 +08:00
name : 'Español (España)' ,
2024-05-14 17:48:24 +08:00
prompt_name : 'Spanish' ,
2024-02-22 16:06:17 +08:00
example : 'Saluton, Dify!' ,
2024-02-23 14:31:06 +08:00
supported : false ,
2024-02-16 20:05:14 +08:00
} ,
{
value : 'fr-FR' ,
2024-04-10 22:05:27 +08:00
name : 'Français (France)' ,
2024-05-14 17:48:24 +08:00
prompt_name : 'French' ,
2024-02-22 16:06:17 +08:00
example : 'Bonjour, Dify!' ,
2024-03-13 18:20:55 +08:00
supported : true ,
2024-02-16 20:05:14 +08:00
} ,
{
value : 'de-DE' ,
2024-04-10 22:05:27 +08:00
name : 'Deutsch (Deutschland)' ,
2024-05-14 17:48:24 +08:00
prompt_name : 'German' ,
2024-02-22 16:06:17 +08:00
example : 'Hallo, Dify!' ,
2024-04-10 22:05:27 +08:00
supported : true ,
2024-02-16 20:05:14 +08:00
} ,
{
value : 'ja-JP' ,
2024-04-10 22:05:27 +08:00
name : '日本語 (日本)' ,
2024-05-14 17:48:24 +08:00
prompt_name : 'Japanese' ,
2024-02-22 16:06:17 +08:00
example : 'こんにちは、Dify!' ,
2024-03-02 13:47:51 +08:00
supported : true ,
2024-02-16 20:05:14 +08:00
} ,
{
value : 'ko-KR' ,
2024-04-10 22:05:27 +08:00
name : '한국어 (대한민국)' ,
2024-05-14 17:48:24 +08:00
prompt_name : 'Korean' ,
2024-05-13 15:20:44 +08:00
example : '안녕하세요, Dify!' ,
supported : true ,
2024-02-16 20:05:14 +08:00
} ,
{
value : 'ru-RU' ,
2024-04-10 22:05:27 +08:00
name : 'Русский (Россия)' ,
2024-05-14 17:48:24 +08:00
prompt_name : 'Russian' ,
2024-02-22 16:06:17 +08:00
example : ' Привет, Dify!' ,
2024-02-23 14:31:06 +08:00
supported : false ,
2024-02-16 20:05:14 +08:00
} ,
{
value : 'it-IT' ,
2024-04-10 22:05:27 +08:00
name : 'Italiano (Italia)' ,
2024-05-14 17:48:24 +08:00
prompt_name : 'Italian' ,
2024-02-22 16:06:17 +08:00
example : 'Ciao, Dify!' ,
2024-02-23 14:31:06 +08:00
supported : false ,
2024-02-16 20:05:14 +08:00
} ,
{
value : 'th-TH' ,
2024-04-10 22:05:27 +08:00
name : 'ไทย (ประเทศไทย)' ,
2024-05-14 17:48:24 +08:00
prompt_name : 'Thai' ,
2024-02-22 16:06:17 +08:00
example : 'สวัสดี Dify!' ,
2024-02-23 14:31:06 +08:00
supported : false ,
2024-02-16 20:05:14 +08:00
} ,
{
value : 'id-ID' ,
name : 'Bahasa Indonesia' ,
2024-05-14 17:48:24 +08:00
prompt_name : 'Indonesian' ,
2024-02-22 16:06:17 +08:00
example : 'Saluto, Dify!' ,
2024-02-23 14:31:06 +08:00
supported : false ,
2024-02-16 20:05:14 +08:00
} ,
2024-02-19 13:11:23 +08:00
{
value : 'uk-UA' ,
2024-04-10 22:05:27 +08:00
name : 'Українська (Україна)' ,
2024-05-14 17:48:24 +08:00
prompt_name : 'Ukrainian' ,
2024-02-22 16:06:17 +08:00
example : 'Привет, Dify!' ,
2024-02-23 14:31:06 +08:00
supported : true ,
2024-02-19 13:11:23 +08:00
} ,
2024-03-13 15:54:47 +08:00
{
value : 'vi-VN' ,
2024-04-10 22:05:27 +08:00
name : 'Tiếng Việt (Việt Nam)' ,
2024-05-14 17:48:24 +08:00
prompt_name : 'Vietnamese' ,
2024-03-13 15:54:47 +08:00
example : 'Xin chào, Dify!' ,
supported : true ,
} ,
2024-05-14 17:48:24 +08:00
{
value : 'ro-RO' ,
name : 'Română (România)' ,
prompt_name : 'Romanian' ,
example : 'Salut, Dify!' ,
supported : true ,
} ,
2024-05-07 15:41:57 +08:00
{
value : 'pl-PL' ,
name : 'Polski (Polish)' ,
2024-05-14 17:48:24 +08:00
prompt_name : 'Polish' ,
2024-05-07 15:41:57 +08:00
example : 'Cześć, Dify!' ,
supported : true ,
} ,
2023-05-15 08:51:32 +08:00
]
2024-02-23 14:31:06 +08:00
export const LanguagesSupported = languages . filter ( item = > item . supported ) . map ( item = > item . value )
export const getLanguage = ( locale : string ) = > {
2024-01-23 21:14:53 +08:00
if ( locale === 'zh-Hans' )
return locale . replace ( '-' , '_' )
return LanguagesSupported [ 0 ] . replace ( '-' , '_' )
}
export const NOTICE_I18N = {
title : {
2024-01-26 19:14:39 +08:00
en_US : 'Important Notice' ,
zh_Hans : '重要公告' ,
pt_BR : 'Aviso Importante' ,
es_ES : 'Aviso Importante' ,
fr_FR : 'Avis important' ,
de_DE : 'Wichtiger Hinweis' ,
ja_JP : '重要なお知らせ' ,
ko_KR : '중요 공지' ,
2024-05-07 15:41:57 +08:00
pl_PL : 'Ważne ogłoszenie' ,
2024-02-19 13:11:23 +08:00
uk_UA : 'Важливе повідомлення' ,
2024-03-13 15:54:47 +08:00
vi_VN : 'Thông báo quan trọng' ,
2024-01-23 21:14:53 +08:00
} ,
desc : {
2024-01-26 19:14:39 +08:00
en_US : 'Our system will be unavailable from 19:00 to 24:00 UTC on August 28 for an upgrade. For questions, kindly contact our support team (support@dify.ai). We value your patience.' ,
zh_Hans : '为了有效提升数据检索能力及稳定性, Dify 将于 2023 年 8 月 29 日 03:00 至 08:00 期间进行服务升级,届时 Dify 云端版及应用将无法访问。感谢您的耐心与支持。' ,
pt_BR : 'Our system will be unavailable from 19:00 to 24:00 UTC on August 28 for an upgrade. For questions, kindly contact our support team (support@dify.ai). We value your patience.' ,
es_ES : 'Our system will be unavailable from 19:00 to 24:00 UTC on August 28 for an upgrade. For questions, kindly contact our support team (support@dify.ai). We value your patience.' ,
fr_FR : 'Our system will be unavailable from 19:00 to 24:00 UTC on August 28 for an upgrade. For questions, kindly contact our support team (support@dify.ai). We value your patience.' ,
de_DE : 'Our system will be unavailable from 19:00 to 24:00 UTC on August 28 for an upgrade. For questions, kindly contact our support team (support@dify.ai). We value your patience.' ,
ja_JP : 'Our system will be unavailable from 19:00 to 24:00 UTC on August 28 for an upgrade. For questions, kindly contact our support team (support@dify.ai). We value your patience.' ,
2024-05-13 15:20:44 +08:00
ko_KR : '시스템이 업그레이드를 위해 UTC 시간대로 8월 28일 19:00 ~ 24:00에 사용 불가될 예정입니다. 질문이 있으시면 지원 팀에 연락주세요 (support@dify.ai). 최선을 다해 답변해드리겠습니다.' ,
2024-05-07 15:41:57 +08:00
pl_PL : 'Nasz system będzie niedostępny od 19:00 do 24:00 UTC 28 sierpnia w celu aktualizacji. W przypadku pytań prosimy o kontakt z naszym zespołem wsparcia (support@dify.ai). Doceniamy Twoją cierpliwość.' ,
2024-02-19 13:11:23 +08:00
uk_UA : 'Наша система буде недоступна з 19:00 до 24:00 UTC 28 серпня для оновлення. Якщо у вас виникнуть запитання, будь ласка, зв’яжіться з нашою службою підтримки (support@dify.ai). Дякуємо за терпіння.' ,
2024-03-13 15:54:47 +08:00
vi_VN : 'Hệ thống của chúng tôi sẽ ngừng hoạt động từ 19:00 đến 24:00 UTC vào ngày 28 tháng 8 để nâng cấp. Nếu có thắc mắc, vui lòng liên hệ với nhóm hỗ trợ của chúng tôi (support@dify.ai). Chúng tôi đánh giá cao sự kiên nhẫn của bạn.' ,
2024-01-23 21:14:53 +08:00
} ,
2024-01-26 13:23:06 +08:00
href : '#' ,
2023-05-15 08:51:32 +08:00
}