diff --git a/src/Languages/en-id/Commands/Configuration.ts b/src/Languages/en-id/Commands/Configuration.ts index 037778f..bb4a579 100644 --- a/src/Languages/en-id/Commands/Configuration.ts +++ b/src/Languages/en-id/Commands/Configuration.ts @@ -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({ 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)}.`; diff --git a/src/Languages/en-id/Commands/Music.ts b/src/Languages/en-id/Commands/Music.ts index fec6c7c..3aac0bb 100644 --- a/src/Languages/en-id/Commands/Music.ts +++ b/src/Languages/en-id/Commands/Music.ts @@ -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({ 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!"; diff --git a/src/Languages/en-id/Commands/Playlist.ts b/src/Languages/en-id/Commands/Playlist.ts index 0a011b1..f00291e 100644 --- a/src/Languages/en-id/Commands/Playlist.ts +++ b/src/Languages/en-id/Commands/Playlist.ts @@ -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({ 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"; diff --git a/src/Languages/en-id/Commands/Premium.ts b/src/Languages/en-id/Commands/Premium.ts index 16db033..3d6adf6 100644 --- a/src/Languages/en-id/Commands/Premium.ts +++ b/src/Languages/en-id/Commands/Premium.ts @@ -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({ 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}`; diff --git a/src/Languages/en-id/Commands/Utility.ts b/src/Languages/en-id/Commands/Utility.ts index 08f417a..d02cc7d 100644 --- a/src/Languages/en-id/Commands/Utility.ts +++ b/src/Languages/en-id/Commands/Utility.ts @@ -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({ 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.`; } diff --git a/src/Languages/en-id/InteractionHandlers/index.ts b/src/Languages/en-id/InteractionHandlers/index.ts index 3b857b1..97aac20 100644 --- a/src/Languages/en-id/InteractionHandlers/index.ts +++ b/src/Languages/en-id/InteractionHandlers/index.ts @@ -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({ 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`; diff --git a/src/Languages/en-id/Player/index.ts b/src/Languages/en-id/Player/index.ts index b97ee63..daae622 100644 --- a/src/Languages/en-id/Player/index.ts +++ b/src/Languages/en-id/Player/index.ts @@ -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({ 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"; diff --git a/src/Languages/en-id/Preconditions/index.ts b/src/Languages/en-id/Preconditions/index.ts index 59b255c..e98e681 100644 --- a/src/Languages/en-id/Preconditions/index.ts +++ b/src/Languages/en-id/Preconditions/index.ts @@ -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({ 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; } diff --git a/src/Languages/en-id/Utility/index.ts b/src/Languages/en-id/Utility/index.ts index 040c126..cf6e25e 100644 --- a/src/Languages/en-id/Utility/index.ts +++ b/src/Languages/en-id/Utility/index.ts @@ -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({ 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."; diff --git a/src/Languages/en-id/index.ts b/src/Languages/en-id/index.ts index a73f856..9329bd9 100644 --- a/src/Languages/en-id/index.ts +++ b/src/Languages/en-id/index.ts @@ -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({ 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; }