From 95d3d8b6c9d720e215219dacbde4ad357237069c Mon Sep 17 00:00:00 2001 From: di-sukharev Date: Thu, 30 Mar 2023 14:52:01 +0800 Subject: [PATCH] chore(commit.ts, es_ES.json, id_ID.json, index.ts): remove unnecessary comments and fix typos in commit messages and translations --- src/commands/commit.ts | 2 +- src/i18n/es_ES.json | 11 +++++------ src/i18n/id_ID.json | 11 +++++------ src/i18n/index.ts | 8 ++++---- 4 files changed, 15 insertions(+), 17 deletions(-) diff --git a/src/commands/commit.ts b/src/commands/commit.ts index b16ff95..d37f3d4 100644 --- a/src/commands/commit.ts +++ b/src/commands/commit.ts @@ -22,7 +22,6 @@ import { import chalk from 'chalk'; import { trytm } from '../utils/trytm'; -// Adding a function to get the list of remotes const getGitRemotes = async () => { const { stdout } = await execa('git', ['remote']); return stdout.split('\n').filter((remote) => remote.trim() !== ''); @@ -77,6 +76,7 @@ ${chalk.grey('——————————————————')}` outro(`${chalk.green('✔')} successfully committed`); outro(stdout); + const remotes = await getGitRemotes(); if (remotes.length === 1) { diff --git a/src/i18n/es_ES.json b/src/i18n/es_ES.json index c4767e8..de22ce2 100644 --- a/src/i18n/es_ES.json +++ b/src/i18n/es_ES.json @@ -1,7 +1,6 @@ { - "localLanguage": "spanish", - "commitFix": "fix(server.ts): cambiar la variable port de minúsculas a mayúsculas PORT", - "commitFeat": "feat(server.ts): añadir soporte para la variable de entorno process.env.PORT", - "commitDescription": "La variable port ahora se llama PORT, lo que mejora la coherencia con las convenciones de nomenclatura, ya que PORT es una constante. El soporte para una variable de entorno permite que la aplicación sea más flexible, ya que ahora puede ejecutarse en cualquier puerto disponible especificado a través de la variable de entorno process.env.PORT." - } - \ No newline at end of file + "localLanguage": "spanish", + "commitFix": "fix(server.ts): cambiar la variable port de minúsculas a mayúsculas PORT", + "commitFeat": "feat(server.ts): añadir soporte para la variable de entorno process.env.PORT", + "commitDescription": "La variable port ahora se llama PORT, lo que mejora la coherencia con las convenciones de nomenclatura, ya que PORT es una constante. El soporte para una variable de entorno permite que la aplicación sea más flexible, ya que ahora puede ejecutarse en cualquier puerto disponible especificado a través de la variable de entorno process.env.PORT." +} diff --git a/src/i18n/id_ID.json b/src/i18n/id_ID.json index 6a765b7..a0d464a 100644 --- a/src/i18n/id_ID.json +++ b/src/i18n/id_ID.json @@ -1,7 +1,6 @@ { - "localLanguage": "bahasa", - "commitFix": "fix(server.ts): mengubah huruf port variable dari huruf kecil ke huruf besar PORT", - "commitFeat": "feat(server.ts): menambahkan support di process.env.PORT environment variabel", - "commitDescriptions": - "Port variabel bernama PORT, yang membantu konsistensi dengan memberi nama yaitu PORT yang konstan. Bantuan environment variabel membantu aplikasi lebih fleksibel, dan dapat di jalankan di port manapun yang tertulis pada process.env.PORT" -} \ No newline at end of file + "localLanguage": "bahasa", + "commitFix": "fix(server.ts): mengubah huruf port variable dari huruf kecil ke huruf besar PORT", + "commitFeat": "feat(server.ts): menambahkan support di process.env.PORT environment variabel", + "commitDescription": "Port variabel bernama PORT, yang membantu konsistensi dengan memberi nama yaitu PORT yang konstan. Bantuan environment variabel membantu aplikasi lebih fleksibel, dan dapat di jalankan di port manapun yang tertulis pada process.env.PORT" +} diff --git a/src/i18n/index.ts b/src/i18n/index.ts index b1f14d1..96dbcfa 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -12,7 +12,7 @@ import es_ES from '../i18n/es_ES.json' assert { type: 'json' }; import sv from '../i18n/sv.json' assert { type: 'json' }; import nl from '../i18n/nl.json' assert { type: 'json' }; import ru from '../i18n/ru.json' assert { type: 'json' }; -import id_ID from '../i18n/id_ID.json' assert { type: 'json'}; +import id_ID from '../i18n/id_ID.json' assert { type: 'json' }; export enum I18nLocals { 'en' = 'en', @@ -28,8 +28,8 @@ export enum I18nLocals { 'es_ES' = 'es_ES', 'sv' = 'sv', 'ru' = 'ru', - 'id_ID' = 'id_ID', -}; + 'id_ID' = 'id_ID' +} export const i18n = { en, @@ -64,7 +64,7 @@ export const I18N_CONFIG_ALIAS: { [key: string]: string[] } = { es_ES: ['es_ES', 'Spanish', 'español'], sv: ['sv', 'Swedish', 'Svenska'], ru: ['ru', 'Russian', 'русский'], - id_ID: ['id_ID', 'Bahasa', 'bahasa'], + id_ID: ['id_ID', 'Bahasa', 'bahasa'] }; export function getI18nLocal(value: string): string | boolean {