ardhi
2 years ago
32 changed files with 1450 additions and 1092 deletions
@ -0,0 +1,75 @@
|
||||
{ |
||||
"3days": "3 Days Ago", |
||||
"7days": "7 Days Ago", |
||||
"action": "Action", |
||||
"add": "Add", |
||||
"ChecklistK3Add": "Add Checklist K3", |
||||
"cancel": "Cancel", |
||||
"close": "Close", |
||||
"color": "Color", |
||||
"date": "Date", |
||||
"dateAbsent": "Absent Date", |
||||
"dateReport": "Report Date", |
||||
"delete": "Delete", |
||||
"deleteMsg": "Delete this data ?", |
||||
"deleteConfirm": "Are you sure ?", |
||||
"description": "Description", |
||||
"division": "Division", |
||||
"divisionAdd": "Add Division", |
||||
"edit": "Edit", |
||||
"export": "Export", |
||||
"exportExcel": "Export Excel", |
||||
"exportPdf": "Export Pdf", |
||||
"gearUse": "Gear Used", |
||||
"gearNotUse": "Gear Not used", |
||||
"hr": "Human Resource", |
||||
"icon": "Icon", |
||||
"inputIcon": "Input Code Icon", |
||||
"inputName": "Input Name", |
||||
"inputDescription": "Input Description", |
||||
"inputParentMenu": "Select Parent Menu", |
||||
"inputAliasMenu": "Input Menu Alias", |
||||
"inputOrder": "Input Order", |
||||
"inputUrl": "Input URL", |
||||
"image": "Image", |
||||
"imageCheck": "Selfie Presence", |
||||
"locIn": "Location In", |
||||
"locOut": "Location Out", |
||||
"menuRoles": "Roles Menu", |
||||
"menuAdd": "Add Menu", |
||||
"nik": "ID Card", |
||||
"name": "Name", |
||||
"nameHR": "Name Human Resource", |
||||
"nameRole": "Name Role", |
||||
"nameDivision": "Name Division", |
||||
"nameProjectType": "Project Type", |
||||
"nameProjectRole": "Project Role", |
||||
"noData": "Data not yet available", |
||||
"order": "Order", |
||||
"parentMenu": "Parent Menu", |
||||
"phase": "Project Phase", |
||||
"projectType": "Add Project Type", |
||||
"projectPhase": "Add Project Phase", |
||||
"presenceIn": "Presence In", |
||||
"presenceOut": "Presence Out", |
||||
"rolesAdd": "Add Roles", |
||||
"roles": "Roles", |
||||
"search": "Search", |
||||
"save": "Save", |
||||
"searchType": "Search Project Type", |
||||
"searchPhase": "Search Project Phase", |
||||
"searchDivision": "Search Division", |
||||
"searchUom": "Search UOM", |
||||
"searchChecklistK3": "Search checklist K3", |
||||
"searchRoles": "Search Roles", |
||||
"searchProjectRoles": "Search Project Roles", |
||||
"searchProject": "All / Select Projects", |
||||
"searchMenu": "Search Menu", |
||||
"searchHR": "Search Human Resource", |
||||
"today": "Today", |
||||
"uom": "UOM", |
||||
"uomAdd": "Add UOM", |
||||
"workDuration": "Work Duration", |
||||
"workAreaIn": "Work Area In", |
||||
"workAreaOut": "Work Area Out" |
||||
} |
@ -0,0 +1,24 @@
|
||||
import i18n from "i18next"; |
||||
import { initReactI18next } from "react-i18next"; |
||||
import en from "./en.json"; |
||||
import id from "./id.json"; |
||||
i18n |
||||
.use(initReactI18next) |
||||
.init({ |
||||
debug: true, |
||||
fallbackLng: 'id', |
||||
interpolation: { |
||||
escapeValue: false, // not needed for react as it escapes by default
|
||||
}, |
||||
resources: { |
||||
en: { |
||||
translation: en, |
||||
}, |
||||
id: { |
||||
translation: id, |
||||
} |
||||
}, |
||||
|
||||
lng: localStorage.getItem("lng") || "id", |
||||
}); |
||||
export default i18n; |
@ -0,0 +1,75 @@
|
||||
{ |
||||
"3days": "3 Hari Yang lalu", |
||||
"7days": "7 Hari Yang lalu", |
||||
"action": "Aksi", |
||||
"add": "Tambah", |
||||
"ChecklistK3Add": "Tambah Ceklis K3", |
||||
"cancel": "Batal", |
||||
"close": "Tutup", |
||||
"color": "Warna", |
||||
"date": "Tanggal", |
||||
"dateAbsent": "Tanggal Absen", |
||||
"dateReport": "Tanggal Lapor", |
||||
"delete": "Hapus", |
||||
"deleteMsg": "Hapus Data Ini ?", |
||||
"deleteConfirm": "Apakah Anda Yakin ?", |
||||
"description": "Deskripsi", |
||||
"division": "Divisi", |
||||
"divisionAdd": "Tambah Divisi", |
||||
"edit": "Ubah", |
||||
"export": "Ekspor", |
||||
"exportExcel": "Ekspor Excel", |
||||
"exportPdf": "Ekspor Pdf", |
||||
"gearUse": "Perlengkapan Dikenakan", |
||||
"gearNotUse": "Perlengkapan Tidak Dikenakan", |
||||
"hr": "Pegawai", |
||||
"icon": "Ikon", |
||||
"inputIcon": "Masukan Kode Ikon", |
||||
"inputName": "Masukan Nama", |
||||
"inputDescription": "Masukan Deskripsi", |
||||
"inputParentMenu": "Pilih Induk Menu", |
||||
"inputAliasMenu": "Masukan Alias Menu", |
||||
"inputOrder": "Masukan Urutan", |
||||
"inputUrl": "Masukan URL", |
||||
"image": "Gambar", |
||||
"imageCheck": "Lihat Selfie Presensi", |
||||
"locIn": "Lokasi Masuk", |
||||
"locOut": "Lokasi Pulang", |
||||
"menuRoles": "Menu Peran", |
||||
"menuAdd": "Tambah Menu", |
||||
"nik": "NIK", |
||||
"nameDivision": "Nama Divisi", |
||||
"name": "Nama", |
||||
"nameHR": "Nama Pegawai", |
||||
"nameRole": "Nama Peran", |
||||
"nameProjectType": "Tipe Proyek", |
||||
"nameProjectRole": "Peran Proyek", |
||||
"noData": "Data Belum tersedia", |
||||
"order": "Urutan", |
||||
"parentMenu": "Menu Induk", |
||||
"phase": "Fase Proyek", |
||||
"projectType": "Tambah Tipe Proyek", |
||||
"projectPhase": "Tambah Fase Proyek", |
||||
"presenceIn": "Waktu Masuk", |
||||
"presenceOut": "Waktu Pulang", |
||||
"rolesAdd": "Tambah Roles", |
||||
"roles": "Peran", |
||||
"save": "Simpan", |
||||
"search": "Cari", |
||||
"searchType": "Cari Tipe Proyek", |
||||
"searchPhase": "Cari Fase Proyek", |
||||
"searchDivision": "Cari Divisi", |
||||
"searchUom": "Cari Satuan", |
||||
"searchChecklistK3": "Cari Ceklis K3", |
||||
"searchRoles": "Cari Peran", |
||||
"searchProjectRoles": "Cari Peran Proyek", |
||||
"searchProject": "Semua / Pilih Proyek", |
||||
"searchMenu": "Cari Menu", |
||||
"searchHR": "Cari Nama Pegawai", |
||||
"today": "Hari Ini", |
||||
"uom": "Satuan", |
||||
"uomAdd": "Tambah Satuan", |
||||
"workDuration": "Durasi Kerja", |
||||
"workAreaIn": "Area Kerja In", |
||||
"workAreaOut": "Area Kerja Out" |
||||
} |
@ -0,0 +1,6 @@
|
||||
import i18n from "../const/i18n"; |
||||
|
||||
export const handleChangeLng = (lng) => { |
||||
i18n.changeLanguage(lng); |
||||
localStorage.setItem("lng", lng); |
||||
}; |
Loading…
Reference in new issue