Giter Club home page Giter Club logo

penerjemah-variabel-masal's Introduction

Penerjemah Variabel Masal

Ini adalah alat untuk menerjemahkan variabel dalam format [variabel]=[yang ingin di terjemakan], contoh anda memiliki file txt dengan isi

西瓜 (xīguā) = Watermelon
苹果 (píngguǒ) = Apple
香蕉 (xiāngjiāo) = Banana

jika di terjemaknan akan menjadi

西瓜 (xīguā) = Semangka
苹果 (píngguǒ) = Apel
香蕉 (xiāngjiāo) = pisang

yang di terjemakna adalah isi dari variabel, program di jalankan menggunakan Python. dapat juga menerjemahkan jia file ada didalam folder dengan menzipnya

Cara Penggunaan

Clone repositori ini ke dalam direktori lokal Anda:

git clone https://github.com/Mabzak-Knight/penerjemah-variabel-masal.git

Instal dependensi yang diperlukan:

cd penerjemah-variabel-masal
pip install -r requirements.txt
from penerjemah import *

Menerjemahkan File txt

Untuk menerjemahkan file txt dan menyimpan file, gunakan fungsi terjemahkan_dan_simpan():

terjemahkan_dan_simpan('lokasi_file_input', 'lokasi_file_output')

Contoh:

terjemahkan_dan_simpan('/content/tes.txt', 'hasil_tes.txt')

Menerjemahkan file.zip

Untuk menerjemahkan filez.zip yang didalamnya adalah folder yang memiliki banyak sub foder dan file txt lalu menzip kembali, dapat menggunakan fungsi menerjemahkan_zip():

menerjemahkan_zip('lokasi_file_zip', 'lokasi_file_output')

Contoh:

menerjemahkan_zip('/content/belum.zip','hasil_terjemahan.zip')

penerjemah-variabel-masal's People

Contributors

mabzak-knight avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.