Skip to content

Commit 171a195

Browse files
committed
chore: update i18n app
1 parent b35bc31 commit 171a195

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+24448
-2678
lines changed

.github/workflows/ci.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,13 @@ jobs:
7070
run: |
7171
npm ci
7272
npm run build
73-
73+
74+
- name: Translation of Messages
75+
working-directory: ./examples-standalone/integration-i18n
76+
run: |
77+
npm ci
78+
npm run build
79+
7480
- name: Spreadsheet App
7581
working-directory: ./examples-standalone/spreadsheet-app
7682
run: |

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
Kendo UI for Angular uses GitHub Issues as an official bug tracker.
44

5-
This repository is intended to support users by providing information on available support options and by storing the sample projects that are referred to from the official Kendo UI for Angular documentation.
5+
This repository is intended to support users by providing information on available support options and by storing the sample projects that are referred to from the [official Kendo UI for Angular documentation](https://www.telerik.com/kendo-angular-ui/components/).
66

77
**This repository does not contain the actual source code of the components.**
88

99
## In This Article
1010

1111
* [Available Support Options](#support-options)
12-
* [Information on How to Use Specific Features](#how-do-i)
13-
* [Queries on Future Releases](#when-do-you-plan-on-releasing-feature-x)
14-
* [Bug Discovery](#i-think-i-found-a-bug)
15-
* [Bug Reports](#i-want-to-report-a-bug)
16-
* [Tailor-Made Solutions](#i-need-a-tailor-made-solution)
12+
* [Information on How to Use Specific Features](#how-do-i)
13+
* [Queries on Future Releases](#when-do-you-plan-on-releasing-feature-x)
14+
* [Bug Discovery](#i-think-i-found-a-bug)
15+
* [Bug Reports](#i-want-to-report-a-bug)
16+
* [Tailor-Made Solutions](#i-need-a-tailor-made-solution)
1717
* [Sample Projects and Applications](#sample-projects)
1818

1919
## Support Options
@@ -59,7 +59,7 @@ The [Progress Services](https://www.progress.com/services) team is available to
5959

6060
## Sample Projects
6161

62-
The kendo-angular repository is a single storing place for all sample applications that are referred in the [official Kendo UI for Angular documentation]. All currently available sample applications are located under the following folders:
62+
The kendo-angular repository is a single storing place for all sample applications that are referred in the [official Kendo UI for Angular documentation](https://www.telerik.com/kendo-angular-ui/components/). All currently available sample applications are located under the following folders:
6363

6464
* [examples/projects/](https://github.com/telerik/kendo-angular/tree/master/examples/projects)
6565
* [examples-standalone](https://github.com/telerik/kendo-angular/tree/master/examples-standalone)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# IntegrationI18n
2+
3+
This project demonstrates how to use Angular i18n and Kendo UI for Angular components in an Angular application. For more information, refer to the [Translation of Messages](https://www.telerik.com/kendo-angular-ui/components/globalization/localization/messages) and [Angular Internationalization](https://angular.dev/guide/i18n) articles.
4+
5+
## Development server
6+
7+
To run the different i18n configurations, you can use the following commands:
8+
9+
```bash
10+
ng serve --configuration=es
11+
```
12+
13+
```bash
14+
ng serve --configuration=de
15+
```
16+
17+
Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"integration-i18n": {
7+
"projectType": "application",
8+
"schematics": {},
9+
"root": "",
10+
"sourceRoot": "src",
11+
"prefix": "app",
12+
"i18n": {
13+
"sourceLocale": "en-US",
14+
"locales": {
15+
"es": {
16+
"translation": "src/locale/messages.es.xlf",
17+
"baseHref": ""
18+
},
19+
"de": {
20+
"translation": "src/locale/messages.de.xlf",
21+
"baseHref": ""
22+
}
23+
}
24+
},
25+
"architect": {
26+
"build": {
27+
"builder": "@angular-devkit/build-angular:application",
28+
"options": {
29+
"outputPath": "dist/integration-i18n",
30+
"index": "src/index.html",
31+
"browser": "src/main.ts",
32+
"localize": true,
33+
"polyfills": [
34+
"zone.js",
35+
"@angular/localize/init"
36+
],
37+
"tsConfig": "tsconfig.app.json",
38+
"assets": [
39+
{
40+
"glob": "**/*",
41+
"input": "public"
42+
}
43+
],
44+
"styles": [
45+
{
46+
"input": "node_modules/@progress/kendo-theme-default/dist/all.css"
47+
},
48+
"src/styles.css"
49+
],
50+
"scripts": []
51+
},
52+
"configurations": {
53+
"production": {
54+
"budgets": [
55+
{
56+
"type": "initial",
57+
"maximumWarning": "4MB",
58+
"maximumError": "5MB"
59+
},
60+
{
61+
"type": "anyComponentStyle",
62+
"maximumWarning": "4kB",
63+
"maximumError": "8kB"
64+
}
65+
],
66+
"outputHashing": "all"
67+
},
68+
"development": {
69+
"optimization": false,
70+
"extractLicenses": false,
71+
"sourceMap": true
72+
},
73+
"es": {
74+
"localize": ["es"]
75+
},
76+
"de": {
77+
"localize": ["de"]
78+
}
79+
},
80+
"defaultConfiguration": "production"
81+
},
82+
"serve": {
83+
"builder": "@angular-devkit/build-angular:dev-server",
84+
"configurations": {
85+
"production": {
86+
"buildTarget": "integration-i18n:build:production"
87+
},
88+
"development": {
89+
"buildTarget": "integration-i18n:build:development"
90+
},
91+
"es": {
92+
"buildTarget": "integration-i18n:build:es"
93+
},
94+
"de": {
95+
"buildTarget": "integration-i18n:build:de"
96+
}
97+
},
98+
"defaultConfiguration": "development"
99+
},
100+
"extract-i18n": {
101+
"builder": "@angular-devkit/build-angular:extract-i18n"
102+
},
103+
"test": {
104+
"builder": "@angular-devkit/build-angular:karma",
105+
"options": {
106+
"polyfills": [
107+
"zone.js",
108+
"zone.js/testing",
109+
"@angular/localize/init"
110+
],
111+
"tsConfig": "tsconfig.spec.json",
112+
"assets": [
113+
{
114+
"glob": "**/*",
115+
"input": "public"
116+
}
117+
],
118+
"styles": [
119+
{
120+
"input": "node_modules/@progress/kendo-theme-default/dist/all.css"
121+
},
122+
"src/styles.css"
123+
],
124+
"scripts": []
125+
}
126+
}
127+
}
128+
}
129+
},
130+
"cli": {
131+
"analytics": false
132+
}
133+
}

0 commit comments

Comments
 (0)