diff --git a/components/LanguageSwitcher.vue b/components/LanguageSwitcher.vue
index 3579b66c..7a5bbfc1 100644
--- a/components/LanguageSwitcher.vue
+++ b/components/LanguageSwitcher.vue
@@ -32,7 +32,7 @@
diff --git a/constants.ts b/constants.ts
index 66e5fea6..da1f8797 100644
--- a/constants.ts
+++ b/constants.ts
@@ -1,4 +1,4 @@
-import { localeCodes, type LanguageDictionary } from './types'
+import { LocaleCodes, type Locale } from './types'
export const URLS: Record = {
ado: 'https://github.com/adoracles/',
@@ -73,17 +73,17 @@ export const URLS: Record = {
solidity_sdk: 'https://www.npmjs.com/package/witnet-solidity',
}
-export const languageLocales: LanguageDictionary = {
- [localeCodes.en]: {
+export const languageLocales: Record = {
+ [LocaleCodes.en]: {
code: 'en-US',
iso: 'en-US',
name: 'ENGLISH',
file: 'en-US.json',
},
- // [localeCodes.es]: {
- // code: 'es-ES',
- // iso: 'es-ES',
- // name: 'ESPAÑOL',
- // file: 'es-ES.json',
- // },
+ [LocaleCodes.es]: {
+ code: 'es-ES',
+ iso: 'es-ES',
+ name: 'ESPAÑOL',
+ file: 'es-ES.json',
+ },
}
diff --git a/types.ts b/types.ts
index 79db1bfc..0dea5b72 100644
--- a/types.ts
+++ b/types.ts
@@ -1,4 +1,4 @@
-export enum localeCodes {
+export enum LocaleCodes {
en = 'en-US',
es = 'es-ES',
}
@@ -18,11 +18,6 @@ export enum ButtonType {
disabled = 'disabled',
}
-export interface LanguageDictionary {
- [localeCodes.en]: Locale
- // [localeCodes.es]: Locale
-}
-
export type TutorialLink = {
name: string
url: string