Skip to content

Commit

Permalink
chore: update locale
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi committed Aug 7, 2023
1 parent 037cb3d commit ea0d110
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 30 deletions.
5 changes: 2 additions & 3 deletions src/Languages/en-id/Commands/Configuration.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import { LanguageOptions } from "@nezuchan/i18n";
import { LanguageOptions, LanguagePiece } from "@nezuchan/i18n";
import { ApplyOptions } from "@nezuchan/decorators";
import { inlineCode } from "@discordjs/builders";
import { Emoji } from "@nezuchan/constants";
import { stripIndents } from "common-tags";
import { EnUsCommandsConfiguration } from "../../en-us/Commands/Configuration.js";

@ApplyOptions<LanguageOptions>({
name: "en-ID/commands/configuration"
})

export class EnIDCommandsConfiguration extends EnUsCommandsConfiguration {
export class EnIDCommandsConfiguration extends LanguagePiece {
public DJ_ALREADY_ADDED = (): string => "User atau role ini sudah di tambahkan.";
public DJ_NOT_USER = (): string => "Kamu harus memberi user yang valid.";
public LOCALES_CURRENT = (locale: string): string => `Lokal saat ini disetel ke ${inlineCode(locale)}.`;
Expand Down
5 changes: 2 additions & 3 deletions src/Languages/en-id/Commands/Music.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { LanguageOptions } from "@nezuchan/i18n";
import { LanguageOptions, LanguagePiece } from "@nezuchan/i18n";
import { ApplyOptions } from "@nezuchan/decorators";
import { bold, inlineCode } from "@discordjs/builders";
import { User } from "@nezuchan/core";
import { EnUsCommandsMusic } from "../../en-us/Commands/Music.js";

@ApplyOptions<LanguageOptions>({
name: "en-ID/commands/music"
})

export class EnIDCommandsMusic extends EnUsCommandsMusic {
export class EnIDCommandsMusic extends LanguagePiece {
public CURRENT_TRACK = (): string => "Trek saat ini";
public CLEAR = (): string => "Menghapus antrian.";
public DISCONNECT = (): string => "Terputus dari saluran suara, terima kasih telah mendengarkan!";
Expand Down
5 changes: 2 additions & 3 deletions src/Languages/en-id/Commands/Playlist.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { LanguageOptions } from "@nezuchan/i18n";
import { LanguageOptions, LanguagePiece } from "@nezuchan/i18n";
import { ApplyOptions } from "@nezuchan/decorators";
import { inlineCode } from "@discordjs/builders";
import { EnUsCommandsPlaylist } from "../../en-us/Commands/Playlist.js";

@ApplyOptions<LanguageOptions>({
name: "en-*ID/commands/playlist"
})

export class EnIDCommandsPlaylist extends EnUsCommandsPlaylist {
export class EnIDCommandsPlaylist extends LanguagePiece {
public INVALID_IDENTIFIER = (): string => "Anda harus memberikan daftar putar yang valid.";
public INVALID_TRACK_IDENTIFIER = (): string => "Anda harus memberikan trek yang valid.";
public INVALID_NAME = (): string => "Nama daftar putar hanya di izinkan huruf, angka, garis bawah, string. dan tidak boleh lebih dari 15 karakter";
Expand Down
5 changes: 2 additions & 3 deletions src/Languages/en-id/Commands/Premium.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { LanguageOptions } from "@nezuchan/i18n";
import { LanguageOptions, LanguagePiece } from "@nezuchan/i18n";
import { ApplyOptions } from "@nezuchan/decorators";
import { EnUsCommandsPremium } from "../../en-us/Commands/Premium.js";

@ApplyOptions<LanguageOptions>({
name: "en-ID/commands/premium"
})

export class EnIDCommandsPremium extends EnUsCommandsPremium {
export class EnIDCommandsPremium extends LanguagePiece {
public HAS_NO_ACTIVATED_SERVER = (): string => "Anda tidak memiliki server yang diaktifkan.";
public DEACTIVATED = (guild: string): string => `Premium dinonaktifkan di ${guild}.`;
public ACTIVATED = (guild: string, tier: string): string => `Premium diaktifkan di ${guild}. Tingkat: ${tier}`;
Expand Down
5 changes: 2 additions & 3 deletions src/Languages/en-id/Commands/Utility.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { LanguageOptions } from "@nezuchan/i18n";
import { LanguageOptions, LanguagePiece } from "@nezuchan/i18n";
import { ApplyOptions } from "@nezuchan/decorators";
import { inlineCode } from "@discordjs/builders";
import { EnUsCommandsUtility } from "../../en-us/Commands/Utility.js";

@ApplyOptions<LanguageOptions>({
name: "en-ID/commands/utility"
})

export class EnIDCommandsUtility extends EnUsCommandsUtility {
export class EnIDCommandsUtility extends LanguagePiece {
public PING_SUCCESS = (): string => "Pong!";
public PING_SUCCRSS_LATENCY = (latency: number): string => `Pong! Butuh waktu ${inlineCode(String(latency))}ms untuk merespons.`;
}
5 changes: 2 additions & 3 deletions src/Languages/en-id/InteractionHandlers/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { LanguageOptions } from "@nezuchan/i18n";
import { LanguageOptions, LanguagePiece } from "@nezuchan/i18n";
import { ApplyOptions } from "@nezuchan/decorators";
import { User } from "@nezuchan/core";
import { EnUsInteractionHandlers } from "../../en-us/InteractionHandlers/index.js";

@ApplyOptions<LanguageOptions>({
name: "en-ID/interaction-handlers"
})

export class EnIDInteractionHandlers extends EnUsInteractionHandlers {
export class EnIDInteractionHandlers extends LanguagePiece {
public AUDIO_BACK_BUTTON = (author: User | string): string => `${author instanceof User ? `<@${author.id}>` : `<@${author}>`}, Kamu menekan tombol kembali. trek sebelumnya dalam urutan antrean akan diputar`;
public NO_BACK_TRACK = (author: User | string): string => `${author instanceof User ? `<@${author.id}>` : `<@${author}>`}, Tidak ada trek sebelumnya dalam urutan antrian`;
public AUDIO_PAUSE_BUTTON = (author: User | string): string => `${author instanceof User ? `<@${author.id}>` : `<@${author}>`}, Kamu menekan tombol jeda. trek akan dijeda`;
Expand Down
5 changes: 2 additions & 3 deletions src/Languages/en-id/Player/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { LanguageOptions } from "@nezuchan/i18n";
import { LanguageOptions, LanguagePiece } from "@nezuchan/i18n";
import { ApplyOptions } from "@nezuchan/decorators";
import { User } from "@nezuchan/core";
import { inlineCode } from "@discordjs/builders";
import { EnUsPlayer } from "../../en-us/Player/index.js";

@ApplyOptions<LanguageOptions>({
name: "en-ID/player"
})

export class EnIDPlayer extends EnUsPlayer {
export class EnIDPlayer extends LanguagePiece {
public TRACK_START = (title: string, author: User | string): string => `Sekarang Memutar: ${inlineCode(title)} [${author instanceof User ? `<@${author.id}>` : `<@${author}>`}]`;
public QUEUE_END = (): string => "Antrian telah selesai, Tolong mengajukan lagu untuk diputar";
public TRACK_EXCEPTION = (): string => "Terjadi kesalahan saat memutar trek, menghentikan antrean. terlalu banyak kesalahan yang terjadi berturut-turut";
Expand Down
5 changes: 2 additions & 3 deletions src/Languages/en-id/Preconditions/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { LanguageOptions } from "@nezuchan/i18n";
import { LanguageOptions, LanguagePiece } from "@nezuchan/i18n";
import { ApplyOptions } from "@nezuchan/decorators";
import { EnIDPreconditionsMusic } from "./Music.js";
import { inlineCode } from "@discordjs/builders";
import { EnUsPreconditions } from "../../en-us/Preconditions/index.js";

@ApplyOptions<LanguageOptions>({
name: "en-ID/preconditions"
})

export class EnIDPreconditions extends EnUsPreconditions {
export class EnIDPreconditions extends LanguagePiece {
public get music(): EnIDPreconditionsMusic {
return this.container.stores.get("languages").get("en-ID/preconditions/music") as EnIDPreconditionsMusic;
}
Expand Down
5 changes: 2 additions & 3 deletions src/Languages/en-id/Utility/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { LanguageOptions } from "@nezuchan/i18n";
import { LanguageOptions, LanguagePiece } from "@nezuchan/i18n";
import { ApplyOptions } from "@nezuchan/decorators";
import { inlineCode } from "@discordjs/builders";
import { EnUsUtility } from "../../en-us/Utility/index.js";

@ApplyOptions<LanguageOptions>({
name: "en-ID/utility"
})

export class EnIDUtility extends EnUsUtility {
export class EnIDUtility extends LanguagePiece {
public ENABLED = (): string => "diaktifkan";
public DISABLED = (): string => "tidak aktif";
public INVALID_INDEX = (): string => "Kamu harus memberikan urutan yang benar.";
Expand Down
5 changes: 2 additions & 3 deletions src/Languages/en-id/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import { LanguageOptions } from "@nezuchan/i18n";
import { LanguageOptions, LanguagePiece } from "@nezuchan/i18n";
import { ApplyOptions } from "@nezuchan/decorators";
import { EnUsCommands } from "../en-us/Commands";
import { EnUsInteractionHandlers } from "../en-us/InteractionHandlers";
import { EnUsPlayer } from "../en-us/Player";
import { EnUsPreconditions } from "../en-us/Preconditions";
import { EnUsUtility } from "../en-us/Utility";
import { EnUs } from "../en-us/index.js";

@ApplyOptions<LanguageOptions>({
name: "en-ID"
})

export class EnID extends EnUs {
export class EnID extends LanguagePiece {
public get utility(): EnUsUtility {
return this.container.stores.get("languages").get("en-ID/utility") as EnUsUtility;
}
Expand Down

0 comments on commit ea0d110

Please sign in to comment.