HubSpot / offline

Automatically display online/offline indication to your users
http://github.hubspot.com/offline/docs/welcome
MIT License
8.64k stars 848 forks source link

[REQUEST] Indonesian translation #296

Open officialxviid opened 2 years ago

officialxviid commented 2 years ago

Request Add Indonesia Translation šŸ‡®šŸ‡©

Sorry, Can you add indonesian language (Bahasa) to your path sir?

I thought it would be like this:

Add offline-js/themes/offline-language-indonesian.css

/* line 6, ../sass/_content.sass */
.offline-ui .offline-ui-retry:before {
  content: "Menghubungkan kembali";
}
/* line 11, ../sass/_content.sass */
.offline-ui.offline-ui-up .offline-ui-content:before {
  content: "Komputer Anda terhubung ke internet.";
}
@media (max-width: 1024px) {
  /* line 11, ../sass/_content.sass */
  .offline-ui.offline-ui-up .offline-ui-content:before {
    content: "Perangkat anda terhubung ke internet.";
  }
}
@media (max-width: 568px) {
  /* line 11, ../sass/_content.sass */
  .offline-ui.offline-ui-up .offline-ui-content:before {
    content: "Perangkat anda telah terhubung.";
  }
}
/* line 22, ../sass/_content.sass */
.offline-ui.offline-ui-down .offline-ui-content:before {
  content: "Komputer anda kehilangan koneksi internet.";
}
@media (max-width: 1024px) {
  /* line 22, ../sass/_content.sass */
  .offline-ui.offline-ui-down .offline-ui-content:before {
    content: "Perangkat anda kehilangan koneksi internet.";
  }
}
@media (max-width: 568px) {
  /* line 22, ../sass/_content.sass */
  .offline-ui.offline-ui-down .offline-ui-content:before {
    content: "Perangkat anda tidak terhubung.";
  }
}
/* line 33, ../sass/_content.sass */
.offline-ui.offline-ui-down.offline-ui-connecting .offline-ui-content:before, .offline-ui.offline-ui-down.offline-ui-connecting-2s .offline-ui-content:before {
  content: "Mencoba menyambung kembali...";
}
/* line 42, ../sass/_content.sass */
.offline-ui.offline-ui-down.offline-ui-waiting .offline-ui-content[data-retry-in-unit="second"]:before {
  content: "Koneksi terputus. Menghubungkan kembali " attr(data-retry-in-value) " detik...";
}
@media (max-width: 568px) {
  /* line 42, ../sass/_content.sass */
  .offline-ui.offline-ui-down.offline-ui-waiting .offline-ui-content[data-retry-in-unit="second"]:before {
    content: "Menghubungkan kembali " attr(data-retry-in-value) "d...";
  }
}
/* line 50, ../sass/_content.sass */
.offline-ui.offline-ui-down.offline-ui-waiting .offline-ui-content[data-retry-in-unit="second"][data-retry-in-value="1"]:before {
  content: "Koneksi terputus. Menghubungkan kembali " attr(data-retry-in-value) " detik...";
}
@media (max-width: 568px) {
  /* line 50, ../sass/_content.sass */
  .offline-ui.offline-ui-down.offline-ui-waiting .offline-ui-content[data-retry-in-unit="second"][data-retry-in-value="1"]:before {
    content: "Menghubungkan kembali " attr(data-retry-in-value) "d...";
  }
}
/* line 58, ../sass/_content.sass */
.offline-ui.offline-ui-down.offline-ui-waiting .offline-ui-content[data-retry-in-unit="minute"]:before {
  content: "Koneksi terputus. Menghubungkan kembali " attr(data-retry-in-value) " menit...";
}
@media (max-width: 568px) {
  /* line 58, ../sass/_content.sass */
  .offline-ui.offline-ui-down.offline-ui-waiting .offline-ui-content[data-retry-in-unit="minute"]:before {
    content: "Menghubungkan kembali " attr(data-retry-in-value) "m...";
  }
}
/* line 66, ../sass/_content.sass */
.offline-ui.offline-ui-down.offline-ui-waiting .offline-ui-content[data-retry-in-unit="minute"][data-retry-in-value="1"]:before {
  content: "Koneksi terputus. Menghubungkan kembali " attr(data-retry-in-value) " menit...";
}
@media (max-width: 568px) {
  /* line 66, ../sass/_content.sass */
  .offline-ui.offline-ui-down.offline-ui-waiting .offline-ui-content[data-retry-in-unit="minute"][data-retry-in-value="1"]:before {
    content: "Menghubungkan kembali " attr(data-retry-in-value) "m...";
  }
}
/* line 74, ../sass/_content.sass */
.offline-ui.offline-ui-down.offline-ui-waiting .offline-ui-content[data-retry-in-unit="hour"]:before {
  content: "Koneksi terputus. Menghubungkan kembali " attr(data-retry-in-value) " jam...";
}
@media (max-width: 568px) {
  /* line 74, ../sass/_content.sass */
  .offline-ui.offline-ui-down.offline-ui-waiting .offline-ui-content[data-retry-in-unit="hour"]:before {
    content: "Menghubungkan kembali " attr(data-retry-in-value) "j...";
  }
}
/* line 82, ../sass/_content.sass */
.offline-ui.offline-ui-down.offline-ui-waiting .offline-ui-content[data-retry-in-unit="hour"][data-retry-in-value="1"]:before {
  content: "Koneksi terputus. Menghubungkan kembali " attr(data-retry-in-value) " jam...";
}
@media (max-width: 568px) {
  /* line 82, ../sass/_content.sass */
  .offline-ui.offline-ui-down.offline-ui-waiting .offline-ui-content[data-retry-in-unit="hour"][data-retry-in-value="1"]:before {
    content: "Menghubungkan kembali " attr(data-retry-in-value) "j...";
  }
}
/* line 90, ../sass/_content.sass */
.offline-ui.offline-ui-down.offline-ui-reconnect-failed-2s.offline-ui-waiting .offline-ui-retry {
  display: none;
}
/* line 93, ../sass/_content.sass */
.offline-ui.offline-ui-down.offline-ui-reconnect-failed-2s .offline-ui-content:before {
  content: "Upaya koneksi gagal.";
}

Add offline-js/themes/offline-language-indonesian-indicator.css

/* line 5, ../sass/offline-language-indonesian-indicator.sass */
.offline-ui.offline-ui-up .offline-ui-content:before {
  content: "Terhubung";
}
/* line 10, ../sass/offline-language-indonesian-indicator.sass */
.offline-ui.offline-ui-down .offline-ui-content:before {
  content: "Terputus";
}

Or there are other alternatives to be able to dynamically add languages.šŸ¤”šŸ¤”

If this has been added I will fix it via NPM. šŸ˜ŠšŸ˜ŠšŸ˜Š

Thank uā€¦