-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MultiLanguage Support && ReactJS 16.2.0
- Loading branch information
Showing
14 changed files
with
117 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import en from './en.js'; | ||
import es from './es.js'; | ||
const languages = {en, es}; | ||
const userLanguage = (navigator.language || navigator.userLanguage).substr(0,2); | ||
export const Translate = ({word}) => translate(word); | ||
export const translate = (word) => languages[userLanguage] ? | ||
languages[userLanguage][word] | ||
: languages['en'][word]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export default { | ||
APP_NAME: 'Catalogue Music', | ||
FIRST_TITLE : 'Access', | ||
FIRST_PARAGRAPH : 'Log in with your social network of choice and start playing with zero cost from now and forever.', | ||
SECOND_TITLE : 'Artists', | ||
SECOND_PARAGRAPH : 'We are working to involve the artists and collaborate with them in reaching their audience. We believe in the possibility of a self-sustainable platform and in the commitment between users and musicians.', | ||
THIRD_TITLE : 'Technology', | ||
THIRD_PARAGRAPH : 'Our goal is to offer a premium quality service with minimum latency and cutting-edge technology.', | ||
ARTISTS: 'Artists', | ||
ALBUMS: 'Albums', | ||
HOME: 'Home', | ||
SEARCH: 'Search', | ||
FAVORITES_SHORT: 'Favs', | ||
PLAYER: 'Player', | ||
EXIT: 'Exit', | ||
PLAY: 'Play', | ||
ALBUMS_INDEXED: 'album/s in Catalogue', | ||
SEARCH_INPUT: 'Type to find music', | ||
PLAYER_HISTORY: 'History', | ||
PLAYER_NEXT: 'Next', | ||
FAVORITES: 'Favorites', | ||
TRACKS_FAVORITED: 'tracks favorited' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export default { | ||
APP_NAME: 'Catalogue Music', | ||
FIRST_TITLE : 'Acceso', | ||
FIRST_PARAGRAPH : 'Ingresá con tu red social preferida y escuchá sin límites ahora mismo y por siempre.', | ||
SECOND_TITLE : 'Artistas', | ||
SECOND_PARAGRAPH : 'Estamos trabajando para involucrar a los artistas y ayudarlos a llegar a su audiencia. Creemos en la posibilidad de una plataforma auto-sustentable y en el compromiso mutuo entre usuarios y artistas.', | ||
THIRD_TITLE : 'Tecnología', | ||
THIRD_PARAGRAPH : 'Nuestro objetivo es ofrecer un servicio de calidad, con latencia mínima y la última tecnología.', | ||
ARTISTS: 'Artistas', | ||
ALBUMS: 'Álbums', | ||
HOME: 'Inicio', | ||
SEARCH: 'Buscar', | ||
FAVORITES_SHORT: 'Favs', | ||
PLAYER: 'Player', | ||
EXIT: 'Salir', | ||
PLAY: 'Play', | ||
ALBUMS_INDEXED: 'álbum/s en Catalogue', | ||
SEARCH_INPUT: 'Escribe para buscar música', | ||
PLAYER_HISTORY: 'Historial', | ||
PLAYER_NEXT: 'Próximo', | ||
FAVORITES: 'Favoritos', | ||
TRACKS_FAVORITED: 'canciones en Favoritos' | ||
} |