Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Add Indonesian as another language #258

Open
wants to merge 2 commits into
base: chat-everywhere
Choose a base branch
from
Open
Show file tree
Hide file tree
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
14 changes: 13 additions & 1 deletion components/EnhancedMenu/ChangeOutputLanguageButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useContext } from 'react';
import React, { useContext, useEffect } from 'react';
import { useTranslation } from 'react-i18next';

import { getAvailableLocales } from '@/utils/app/i18n';
Expand All @@ -8,12 +8,24 @@ import HomeContext from '@/components/home/home.context';

function ChangeOutputLanguageButton() {
const { t } = useTranslation('model');
// Get the selected language
const { i18n } = useTranslation('model');
const currentLanguage = i18n.language;

const {
state: { outputLanguage },
dispatch: homeDispatch,
} = useContext(HomeContext);

// Set the default language based on the i18n locale if outputLanguage is not already set
useEffect(() => {
if (!outputLanguage) {
homeDispatch({ field: 'outputLanguage', value: currentLanguage });
saveOutputLanguage(currentLanguage);
}
}, []);


const availableLocales = getAvailableLocales();

const locales = [
Expand Down
28 changes: 28 additions & 0 deletions public/locales/id/auth.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"Sign up to get access to all the amazing features of Chat Everywhere!": "Daftar untuk mengakses semua fitur menakjubkan dari Chat Everywhere!",
"By signing up, you agree to our ": "Dengan mendaftar, Anda menyetujui ",
"Terms of Service.": "Syarat Layanan kami.",
"Email address": "Alamat email",
"Create a Password": "Buat Kata Sandi",
"Your email address": "Alamat email Anda",
"Your password": "Kata sandi Anda",
"Sign up": "Daftar",
"Signing up ...": "Sedang mendaftar...",
"Don't have an account? Sign up": "Tidak memiliki akun? Daftar",
"Check your email for the confirmation link": "Periksa email Anda untuk tautan konfirmasi",
"Your Password": "Kata Sandi Anda",
"Sign in": "Masuk",
"Already have an account? Sign in": "Sudah memiliki akun? Masuk",
"Send reset password instructions": "Kirim instruksi atur ulang kata sandi",
"Sending reset instructions ...": "Sedang mengirim instruksi atur ulang...",
"Forgot your password?": "Lupa kata sandi Anda?",
"Check your email for the password reset link": "Periksa email Anda untuk tautan atur ulang kata sandi",
"New password": "Kata sandi baru",
"Your new password": "Kata sandi baru Anda",
"Update password": "Perbarui kata sandi",
"Updating password ...": "Sedang memperbarui kata sandi...",
"Your password has been updated": "Kata sandi Anda telah diperbarui",
"Your one-time code": "Kode sekali pakai Anda",
"Invalid code": "Kode tidak valid",
"An unknown error occurred": "Terjadi kesalahan yang tidak diketahui"
}
68 changes: 52 additions & 16 deletions public/locales/id/chat.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,65 @@
{
"You are an AI language model named Chat Everywhere, designed to answer user questions as accurately and helpfully as possible. Always be aware of the current date and time, and make sure to generate responses in the exact same language as the user's query. Adapt your responses to match the user's input language and context, maintaining an informative and supportive communication style. Additionally, format all responses using Markdown syntax, regardless of the input format.": "Anda adalah ChatGPT, model bahasa besar yang dilatih oleh OpenAI. Ikuti instruksi pengguna dengan hati-hati. Balas menggunakan markdown.",
"OpenAI API Key Required": "Memerlukan Kunci API OpenAI",
"Please set your OpenAI API key in the bottom left of the sidebar.": "Silakan atur kunci API OpenAI Anda di bagian kiri bawah bilah sisi.",
"OpenAI API Key Required": "Diperlukan Kunci API OpenAI",
"Please set your OpenAI API key in the bottom left of the sidebar.": "Silakan atur kunci API OpenAI Anda di sudut kiri bawah sidebar.",
"If you don't have an OpenAI API key, you can get one here: ": "Jika Anda tidak memiliki kunci API OpenAI, Anda bisa mendapatkannya di sini: ",
"Stop Generating": "Berhenti Menghasilkan",
"Prompt limit is {{maxLength}} characters": "Batas karakter untuk prompt adalah {{maxLength}} karakter",
"Prompt limit is {{maxLength}} characters": "Batas prompt adalah {{maxLength}} karakter",
"System Prompt": "Prompt Sistem",
"You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.": "Anda adalah ChatGPT, model bahasa besar yang dilatih oleh OpenAI. Ikuti instruksi pengguna dengan hati-hati. Balas menggunakan markdown.",
"Enter a prompt": "Masukkan sebuah prompt",
"Regenerate response": "Hasilkan kembali respons",
"Regenerate response": "Hasilkan respons kembali",
"Sorry, there was an error.": "Maaf, terjadi kesalahan.",
"Model": "Model",
"Conversation": "Percakapan",
"OR": "ATAU",
"Loading...": "Memuat...",
"Type a message...": "Ketik sebuah pesan...",
"Error fetching models.": "Kesalahan dalam mengambil model.",
"Type a message ...": "Ketik pesan...",
"Error fetching models.": "Kesalahan saat mengambil model.",
"AI": "AI",
"You": "Anda",
"Cancel": "Cancel",
"Save & Submit": "Save & Submit",
"Make sure your OpenAI API key is set in the bottom left of the sidebar.": "Pastikan kunci API OpenAI Anda diatur di bagian kiri bawah bilah sisi.",
"Cancel": "Batal",
"Save & Submit": "Simpan & Kirim",
"Make sure your OpenAI API key is set in the bottom left of the sidebar.": "Pastikan kunci API OpenAI Anda telah diatur di sudut kiri bawah sidebar.",
"If you completed this step, OpenAI may be experiencing issues.": "Jika Anda telah menyelesaikan langkah ini, OpenAI mungkin mengalami masalah.",
"click if using a .env.local file": "klik jika menggunakan file .env.local",
"Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "Batas karakter untuk pesan adalah {{maxLength}} karakter. Anda telah memasukkan {{valueLength}} karakter.",
"Please enter a message": "Silakan masukkan sebuah pesan",
"Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UI adalah kit chatbot canggih untuk model obrolan OpenAI yang bertujuan meniru antarmuka dan fungsionalitas ChatGPT.",
"Are you sure you want to clear all messages?": "Apakah Anda yakin ingin menghapus semua pesan?"
"Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "Batas pesan adalah {{maxLength}} karakter. Anda telah memasukkan {{valueLength}} karakter.",
"Please enter a message": "Silakan masukkan pesan",
"Where the forefront of AI technology meets universal access.": "Di mana garis depan teknologi AI bertemu dengan akses universal.",
"Are you sure you want to clear all messages?": "Apakah Anda yakin ingin menghapus semua pesan?",
"Switch to Sample Prompts": "Beralih ke Prompt Contoh",
"Switch to Role Play": "Beralih ke Permainan Peran",
"Conversation loaded successfully.": "Percakapan berhasil dimuat.",
"Sorry, we could not find this shared conversation.": "Maaf, kami tidak dapat menemukan percakapan bersama ini.",
"By sharing this conversation, it will be stored on our server. Are you sure you want to share this conversation?": "Dengan membagikan percakapan ini, itu akan disimpan di server kami. Apakah Anda yakin ingin membagikan percakapan ini?",
"Conversation saved!": "Percakapan disimpan!",
"Copy link": "Salin tautan",
"Failed to copy the sharable link to clipboard.": "Gagal menyalin tautan yang dapat dibagikan ke clipboard.",
"Failed to store the conversation": "Gagal menyimpan percakapan",
"Link copied to clipboard!": "Tautan disalin ke clipboard!",
"Failed to copy the link to clipboard.": "Gagal menyalin tautan ke clipboard.",
"Please copy it manually:": "Silakan salin secara manual:",
"Try out the new internet-connected enhance chat mode by clicking the": "Coba mode chat terhubung internet yang ditingkatkan dengan mengklik",
"icon": "ikon",
"Something went wrong. Please try again later.": "Ada yang salah. Silakan coba lagi nanti.",
"Thank you for your feedback!": "Terima kasih atas masukan Anda!",
"Feedback (Optional)": "Masukan (Opsional)",
"Thank you for your feedback! Can we upload your current conversation to our server for product improvement purposes? We will never share your data with anyone.": "Terima kasih atas masukan Anda! Bolehkah kami mengunggah percakapan Anda saat ini ke server kami untuk tujuan peningkatan produk? Kami tidak akan pernah membagikan data Anda dengan siapa pun.",
"Sure!": "Tentu!",
"No Thanks": "Tidak, Terima Kasih",
"You have been logged out": "Anda telah keluar",
"If you like this project, please support us by subscribing to our Pro plan!": "Jika Anda menyukai proyek ini, silakan dukung kami dengan berlangganan rencana Pro kami!",
"Please share your thoughts by completing a brief survey": "Silakan bagikan pemikiran Anda dengan menyelesaikan survei singkat",
"Remaining Credits": "Kredit Tersisa",
"Click to download image": "Klik untuk mengunduh gambar",
"Features introduction page is now available!": "Halaman pengenalan fitur sekarang tersedia!",
"Upscale image failed": "Peningkatan kualitas gambar gagal",
"We apologize for the inconvenience, but our server is currently experiencing high traffic. Please try again later.": "Kami meminta maaf atas ketidaknyamanan ini, tetapi server kami saat ini mengalami lalu lintas yang tinggi. Silakan coba lagi nanti.",
"Please sign in to reduce wait time, or upgrade to remove it": "Silakan masuk untuk mengurangi waktu tunggu, atau tingkatkan untuk menghapusnya",
"Upgrade to the Pro version to eliminate the wait time": "Tingkatkan ke versi Pro untuk menghilangkan waktu tunggu",
"Sorry, something went wrong. Our team has been notified and will look into it.": "Maaf, ada yang salah. Tim kami telah diberitahu dan akan menyelidikinya.",
"Sorry something went wrong. Please refresh the page and try again.": "Maaf ada yang salah. Silakan segarkan halaman dan coba lagi.",
"Sorry, our safety system detected unsafe content in your message. Please try again with a different topic.": "Maaf, sistem keamanan kami mendeteksi konten yang tidak aman dalam pesan Anda. Silakan coba lagi dengan topik yang berbeda.",
"AI image generation is temporarily unavailable. We are working to get it back online as soon as possible.": "Pembuatan gambar AI sementara tidak tersedia. Kami sedang bekerja untuk mengembalikannya online sesegera mungkin.",
"Custom Instruction ({{customInstructionPromptName}}) is in use": "Instruksi Khusus ({{customInstructionPromptName}}) sedang digunakan",
"Custom Instruction only available in Chat mode": "Instruksi Khusus hanya tersedia dalam mode Chat",
"Teacher Custom Instruction ({{customInstructionPromptName}}) is in use": "Instruksi Khusus Guru ({{customInstructionPromptName}}) sedang digunakan",
"Join our event in {{hours}} hours!": "Bergabunglah dengan acara kami dalam {{hours}} jam!"
}
13 changes: 12 additions & 1 deletion public/locales/id/common.json
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
{}
{
"This feature is not available at the moment. Please try again later": "Fitur ini tidak tersedia saat ini. Silakan coba lagi nanti",
"Unable to access microphone": "Tidak dapat mengakses mikrofon",
"The speech service is unavailable at the moment, please try again later": "Layanan ucapan tidak tersedia saat ini, silakan coba lagi nanti",
"Please register and sign in to enable voice input": "Silakan daftar dan masuk untuk mengaktifkan input suara",
"Please sign in to use ai image feature": "Silakan masuk untuk menggunakan fitur gambar AI",
"Please sign in to use image to prompt feature": "Silakan masuk untuk menggunakan fitur gambar untuk prompt",
"We appreciate your use of our application.": "Kami menghargai penggunaan aplikasi kami.",
"Currently, our app is optimized to work in portrait mode and unfortunately, we do not support landscape mode at this moment.": "Saat ini, aplikasi kami dioptimalkan untuk bekerja dalam mode potret dan sayangnya, kami tidak mendukung mode lanskap saat ini.",
"Thank you for your understanding and patience.": "Terima kasih atas pengertian dan kesabaran Anda.",
"Upload": "Unggah"
}
14 changes: 14 additions & 0 deletions public/locales/id/feature.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"Syncing ...": "Menyinkronkan ...",
"Synced": "Tersinkron",
"Sync failed": "Sinkronisasi gagal",
"Cloud sync disabled": "Sinkronisasi cloud dinonaktifkan",
"This is a Pro only feature. Please sign-up to use it if you don't have an account.": "Ini adalah fitur khusus Pro. Silakan daftar untuk menggunakannya jika Anda belum memiliki akun.",
"Please connect with your Line account first.": "Silakan hubungkan dengan akun Line Anda terlebih dahulu.",
"Failed to share message, please try again later": "Gagal membagikan pesan, silakan coba lagi nanti",
"Your Line connection has expired, please re-connect on the setting page": "Koneksi Line Anda telah kedaluwarsa, silakan hubungkan kembali di halaman pengaturan",
"Message shared successfully": "Pesan berhasil dibagikan!",
"Share to LINE": "Bagikan ke LINE",
"Sharing message to LINE...": "Membagikan pesan ke LINE...",
"Share to Teacher": "Bagikan ke Guru"
}
4 changes: 4 additions & 0 deletions public/locales/id/features.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"Feature Introduction": "Pengenalan Fitur",
"Back": "Kembali"
}
3 changes: 3 additions & 0 deletions public/locales/id/form.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"isRequired": "{{field}} adalah wajib diisi"
}
5 changes: 5 additions & 0 deletions public/locales/id/imageToPrompt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"Image to Prompt": "Gambar ke Prompt",
"Please upload only 1 image": "Harap unggah hanya 1 gambar",
"The Max Image Size is 20MB": "Ukuran maksimal gambar adalah 20MB"
}
2 changes: 1 addition & 1 deletion public/locales/id/markdown.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Copy code": "Salin kode",
"Copied!": "Kode disalin!",
"Copied!": "Tersalin!",
"Enter file name": "Masukkan nama file"
}
14 changes: 14 additions & 0 deletions public/locales/id/mjImage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"🪄 Make Variations": "🪄 Buat Variasi",
"U1": "Pilih Gambar",
"U2": "Pilih Gambar",
"U3": "Pilih Gambar",
"U4": "Pilih Gambar",
"V1": "Perluas Variasi",
"V2": "Perluas Variasi",
"V3": "Perluas Variasi",
"V4": "Perluas Variasi",
"View Image": "Lihat Gambar",
"Download Image": "Unduh Gambar",
"Image processing... ": "Pengolahan Gambar..."
}
Loading