Angular 6 Regres Api example project. This project was generated with Angular CLI version 6.0.8.
Rum npm install for install npm modules.
Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.
Run ng test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.
- Ebubekir Tabak
Example For Arabic.
1. Add 'ar.json' file in assets/i18n.
2. Then add language texts in the JSON file.
{ "title":"welcome", "email_address":"Email address", "enter_email":"Enter email", "password":"Password", "enter_password":"Enter password", "login_text":"Login", "edit_user": "Edit User", "delete_user": "Delete User", "create_user": "Create User", "app_name": "Regres App", "app_language": "App Language", "name": "Name", "job": "Job", "close": "Close", "back": "Back", "save": "Save", "login": "Login", "ok": "Ok", "users": "Users", "user_type": "User Type", "logout": "Logout", "login":{ "title":"Login" } }
3. add the language option to the language object in the app/common/global.ts file.
languages : [{value: 'en', text: "English"}, {value: 'tr', text: "Türkçe"}, **{value: 'ar', text: "Arabic"}** ]
