tderflinger / vue-audio-tapir

Audio recorder component for Vue.js 3. It enables to record, play and send audio messages to a server.
MIT License
51 stars 17 forks source link

Translating to persian #2

Open kiankarimi2 opened 2 years ago

kiankarimi2 commented 2 years ago

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch vue-audio-tapir@1.2.0 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/vue-audio-tapir/src/components/TapirWidget.vue b/node_modules/vue-audio-tapir/src/components/TapirWidget.vue
index d682a58..4ec01a9 100644
--- a/node_modules/vue-audio-tapir/src/components/TapirWidget.vue
+++ b/node_modules/vue-audio-tapir/src/components/TapirWidget.vue
@@ -1,6 +1,6 @@
 <template>
   <div class="text-center font-sans w-96 mx-auto rounded-lg shadow-lg border-solid border-2 p-8">
-    <h2 class="font-bold text-2xl">Record Audio Message</h2>
+    <h2 class="font-bold text-2xl">ضبط فایل صوتی</h2>
     <div>
       <icon-button
         :style="{ 'border-color': buttonColor }"
@@ -26,7 +26,7 @@
         Your browser does not support the
         <code>audio</code> element.
       </audio>
-      <figcaption class="text-sm mt-2">Listen to your recording before submitting.</figcaption>
+      <figcaption class="text-sm mt-2">به ویس ضبط شده گوش دهید</figcaption>
     </figure>
     <submit-button @submit="sendData" :color="buttonColor" />
   </div>
@@ -39,7 +39,7 @@ import Recorder from "../lib/recorder";
 import convertTimeMMSS from "../lib/utils";
 import "../styles/app.css";

-const INSTRUCTION_MESSAGE = "Click icon to start recording message.";
+const INSTRUCTION_MESSAGE = "بر روی آیکون کلیک کنید تا ضبط کردن آغاز شود";
 const INSTRUCTION_MESSAGE_STOP = "Click icon again to stop recording.";
 const ERROR_MESSAGE = "Failed to use microphone. Please refresh and try again and permit the use of a microphone.";
 const SUCCESS_MESSAGE = "Successfully recorded message!";

This issue body was partially generated by patch-package.