Skip to content

Commit

Permalink
[FIX] Translation of strings in Login page
Browse files Browse the repository at this point in the history
* Strings are added for translation.

fixes: #2620
  • Loading branch information
sumukhah committed Dec 7, 2020
1 parent 2403eb3 commit a029915
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/i18n/locales/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -704,5 +704,7 @@ export default {
The_user_will_be_removed_from_s: 'The user will be removed from {{s}}',
Yes_remove_user: 'Yes, remove user!',
Direct_message: 'Direct message',
Message_Ignored: 'Message ignored. Tap to display it.'
Message_Ignored: 'Message ignored. Tap to display it.',
Enter_workspace_URL: 'Enter workspace URL',
Workspace_URL_Example: 'Ex. your-company.rocket.chat'
};
5 changes: 3 additions & 2 deletions app/views/NewServerView/ServerInput/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import TextInput from '../../../containers/TextInput';
import * as List from '../../../containers/List';
import { themes } from '../../../constants/colors';
import Item from './Item';
import I18n from '../../../i18n';

const styles = StyleSheet.create({
container: {
Expand Down Expand Up @@ -42,8 +43,8 @@ const ServerInput = ({
return (
<View style={styles.container}>
<TextInput
label='Enter workspace URL'
placeholder='Ex. your-company.rocket.chat'
label={I18n.t('Enter_workspace_URL')}
placeholder={I18n.t('Workspace_URL_Example')}
containerStyle={styles.inputContainer}
value={text}
returnKeyType='send'
Expand Down

0 comments on commit a029915

Please sign in to comment.