Skip to content

Commit 82e6e3a

Browse files
committed
chore: update i18n app
1 parent b35bc31 commit 82e6e3a

30 files changed

+8143
-1895
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ jobs:
7070
run: |
7171
npm ci
7272
npm run build
73+
74+
- name: Translation of Messages
75+
working-directory: ./examples/integration-18n
76+
run: |
77+
npm ci
78+
npm run build
7379
7480
- name: Spreadsheet App
7581
working-directory: ./examples-standalone/spreadsheet-app

README.md

Lines changed: 7 additions & 7 deletions
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)
Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
# Translating Built-In Component Messages
1+
# IntegrationI18n
22

3-
This Kendo UI for Angular sample project demonstrates how to translate the built-in messages of [Kendo UI for Angular components](https://www.telerik.com/kendo-angular-ui/components/).
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.
44

5-
The demo is referred to in the [Kendo UI for Angular official documentation](https://www.telerik.com/kendo-angular-ui/components) in the article on [translating messages](https://www.telerik.com/kendo-angular-ui/components/globalization/localization/messages/).
5+
## Development server
66

7-
## Getting Started
7+
To run the different i18n configurations, you can use the following commands:
88

9-
1. Clone this repository by using your favorite Git client or by executing `git clone https://github.com/telerik/kendo-angular.git`.
10-
1. Enter the examples directory by running `cd examples`.
11-
1. Run `npm install` to install the project dependencies.
12-
1. Enter the project directory by running `cd projects/integration-i18n`.
13-
1. Run `ng serve integration-i18n --configuration=es`.
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.
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
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+
"polyfills": [
33+
"zone.js",
34+
"@angular/localize/init"
35+
],
36+
"tsConfig": "tsconfig.app.json",
37+
"assets": [
38+
{
39+
"glob": "**/*",
40+
"input": "public"
41+
}
42+
],
43+
"styles": [
44+
{
45+
"input": "node_modules/@progress/kendo-theme-default/dist/all.css"
46+
},
47+
"src/styles.css"
48+
],
49+
"scripts": []
50+
},
51+
"configurations": {
52+
"production": {
53+
"budgets": [
54+
{
55+
"type": "initial",
56+
"maximumWarning": "500kB",
57+
"maximumError": "1MB"
58+
},
59+
{
60+
"type": "anyComponentStyle",
61+
"maximumWarning": "4kB",
62+
"maximumError": "8kB"
63+
}
64+
],
65+
"outputHashing": "all"
66+
},
67+
"development": {
68+
"optimization": false,
69+
"extractLicenses": false,
70+
"sourceMap": true
71+
},
72+
"es": {
73+
"localize": ["es"]
74+
},
75+
"de": {
76+
"localize": ["de"]
77+
}
78+
},
79+
"defaultConfiguration": "production"
80+
},
81+
"serve": {
82+
"builder": "@angular-devkit/build-angular:dev-server",
83+
"configurations": {
84+
"production": {
85+
"buildTarget": "integration-i18n:build:production"
86+
},
87+
"development": {
88+
"buildTarget": "integration-i18n:build:development"
89+
},
90+
"es": {
91+
"buildTarget": "integration-i18n:build:es"
92+
},
93+
"de": {
94+
"buildTarget": "integration-i18n:build:de"
95+
}
96+
},
97+
"defaultConfiguration": "development"
98+
},
99+
"extract-i18n": {
100+
"builder": "@angular-devkit/build-angular:extract-i18n"
101+
},
102+
"test": {
103+
"builder": "@angular-devkit/build-angular:karma",
104+
"options": {
105+
"polyfills": [
106+
"zone.js",
107+
"zone.js/testing",
108+
"@angular/localize/init"
109+
],
110+
"tsConfig": "tsconfig.spec.json",
111+
"assets": [
112+
{
113+
"glob": "**/*",
114+
"input": "public"
115+
}
116+
],
117+
"styles": [
118+
{
119+
"input": "node_modules/@progress/kendo-theme-default/dist/all.css"
120+
},
121+
"src/styles.css"
122+
],
123+
"scripts": []
124+
}
125+
}
126+
}
127+
}
128+
},
129+
"cli": {
130+
"analytics": false
131+
}
132+
}

examples/projects/integration-i18n/karma.conf.js

Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"name": "integration-i18n",
3+
"version": "0.0.0",
4+
"scripts": {
5+
"ng": "ng",
6+
"start": "ng serve",
7+
"build": "ng build",
8+
"watch": "ng build --watch --configuration development",
9+
"test": "ng test"
10+
},
11+
"private": true,
12+
"dependencies": {
13+
"@angular/animations": "^19.0.0",
14+
"@angular/common": "^19.0.0",
15+
"@angular/compiler": "^19.0.0",
16+
"@angular/core": "^19.0.0",
17+
"@angular/forms": "^19.0.0",
18+
"@angular/localize": "^19.0.0",
19+
"@angular/platform-browser": "^19.0.0",
20+
"@angular/platform-browser-dynamic": "^19.0.0",
21+
"@angular/router": "^19.0.0",
22+
"@progress/kendo-angular-buttons": "17.2.0",
23+
"@progress/kendo-angular-common": "17.2.0",
24+
"@progress/kendo-angular-dateinputs": "17.2.0",
25+
"@progress/kendo-angular-dialog": "17.2.0",
26+
"@progress/kendo-angular-dropdowns": "17.2.0",
27+
"@progress/kendo-angular-excel-export": "17.2.0",
28+
"@progress/kendo-angular-grid": "^17.2.0",
29+
"@progress/kendo-angular-icons": "17.2.0",
30+
"@progress/kendo-angular-inputs": "17.2.0",
31+
"@progress/kendo-angular-intl": "17.2.0",
32+
"@progress/kendo-angular-l10n": "17.2.0",
33+
"@progress/kendo-angular-label": "17.2.0",
34+
"@progress/kendo-angular-layout": "17.2.0",
35+
"@progress/kendo-angular-messages": "^1.59.0",
36+
"@progress/kendo-angular-navigation": "17.2.0",
37+
"@progress/kendo-angular-pager": "17.2.0",
38+
"@progress/kendo-angular-pdf-export": "17.2.0",
39+
"@progress/kendo-angular-popup": "17.2.0",
40+
"@progress/kendo-angular-progressbar": "17.2.0",
41+
"@progress/kendo-angular-toolbar": "17.2.0",
42+
"@progress/kendo-angular-treeview": "17.2.0",
43+
"@progress/kendo-angular-utils": "17.2.0",
44+
"@progress/kendo-data-query": "^1.0.0",
45+
"@progress/kendo-drawing": "^1.21.0",
46+
"@progress/kendo-licensing": "^1.0.2",
47+
"@progress/kendo-svg-icons": "^4.0.0",
48+
"@progress/kendo-theme-default": "^10.0.1",
49+
"rxjs": "~7.8.0",
50+
"tslib": "^2.3.0",
51+
"zone.js": "~0.15.0"
52+
},
53+
"devDependencies": {
54+
"@angular-devkit/build-angular": "^19.0.6",
55+
"@angular/cli": "^19.0.6",
56+
"@angular/compiler-cli": "^19.0.0",
57+
"@types/jasmine": "~5.1.0",
58+
"jasmine-core": "~5.4.0",
59+
"karma": "~6.4.0",
60+
"karma-chrome-launcher": "~3.2.0",
61+
"karma-coverage": "~2.2.0",
62+
"karma-jasmine": "~5.1.0",
63+
"karma-jasmine-html-reporter": "~2.1.0",
64+
"typescript": "~5.6.2"
65+
}
66+
}

0 commit comments

Comments
 (0)