Commit a9e341d9 authored by Anusha Mamidala's avatar Anusha Mamidala
Browse files

Added localization frame for telugu and hindi

parent d237d360
......@@ -5,6 +5,13 @@
"projects": {
"BalaSwecha": {
"projectType": "application",
"i18n": {
"sourceLocale": "en-US",
"locales": {
"hi": "src/locale/messages.hi.xlf" ,
"te": "src/locale/messages.te.xlf"
}
},
"schematics": {
"@schematics/angular:component": {
"style": "scss"
......@@ -48,6 +55,22 @@
"with": "src/environments/environment.prod.ts"
}
]
},
"hi":{
"aot": true,
"outputPath": "dist/i18ntranslate",
"i18nFile": "src/locale/messages.hi.xlf",
"i18nFormat": "xlf",
"i18nLocale": "hi",
"i18nMissingTranslation": "error"
},
"te":{
"aot": true,
"outputPath": "dist/i18ntranslate",
"i18nFile": "src/locale/messages.te.xlf",
"i18nFormat": "xlf",
"i18nLocale": "te",
"i18nMissingTranslation": "error"
}
}
},
......@@ -59,6 +82,12 @@
"configurations": {
"production": {
"browserTarget": "BalaSwecha:build:production"
},
"hi":{
"browserTarget": "BalaSwecha:build:hi"
},
"te":{
"browserTarget": "BalaSwecha:build:te"
}
}
},
......
......@@ -518,6 +518,141 @@
"tslib": "^2.0.0"
}
},
"@angular/localize": {
"version": "11.2.9",
"resolved": "https://registry.npmjs.org/@angular/localize/-/localize-11.2.9.tgz",
"integrity": "sha512-uizKA4AWJ3IAZFv9tY5VrD//nhucg+kmppC6ZxBdsl6DNH4C9Tihc5JATwaO6H9TKkFY/xSxZsJLxWmDEOWwVA==",
"dev": true,
"requires": {
"@babel/core": "7.8.3",
"glob": "7.1.2",
"yargs": "^16.2.0"
},
"dependencies": {
"@babel/core": {
"version": "7.8.3",
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.8.3.tgz",
"integrity": "sha512-4XFkf8AwyrEG7Ziu3L2L0Cv+WyY47Tcsp70JFmpftbAA1K7YL/sgE9jh9HyNj08Y/U50ItUchpN0w6HxAoX1rA==",
"dev": true,
"requires": {
"@babel/code-frame": "^7.8.3",
"@babel/generator": "^7.8.3",
"@babel/helpers": "^7.8.3",
"@babel/parser": "^7.8.3",
"@babel/template": "^7.8.3",
"@babel/traverse": "^7.8.3",
"@babel/types": "^7.8.3",
"convert-source-map": "^1.7.0",
"debug": "^4.1.0",
"gensync": "^1.0.0-beta.1",
"json5": "^2.1.0",
"lodash": "^4.17.13",
"resolve": "^1.3.2",
"semver": "^5.4.1",
"source-map": "^0.5.0"
}
},
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"cliui": {
"version": "7.0.4",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",
"integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==",
"dev": true,
"requires": {
"string-width": "^4.2.0",
"strip-ansi": "^6.0.0",
"wrap-ansi": "^7.0.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true
},
"glob": {
"version": "7.1.2",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz",
"integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==",
"dev": true,
"requires": {
"fs.realpath": "^1.0.0",
"inflight": "^1.0.4",
"inherits": "2",
"minimatch": "^3.0.4",
"once": "^1.3.0",
"path-is-absolute": "^1.0.0"
}
},
"semver": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
"integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
"dev": true
},
"source-map": {
"version": "0.5.7",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",
"integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
"dev": true
},
"wrap-ansi": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
"integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
"dev": true,
"requires": {
"ansi-styles": "^4.0.0",
"string-width": "^4.1.0",
"strip-ansi": "^6.0.0"
}
},
"y18n": {
"version": "5.0.8",
"resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
"integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
"dev": true
},
"yargs": {
"version": "16.2.0",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz",
"integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==",
"dev": true,
"requires": {
"cliui": "^7.0.2",
"escalade": "^3.1.1",
"get-caller-file": "^2.0.5",
"require-directory": "^2.1.1",
"string-width": "^4.2.0",
"y18n": "^5.0.5",
"yargs-parser": "^20.2.2"
}
},
"yargs-parser": {
"version": "20.2.7",
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.7.tgz",
"integrity": "sha512-FiNkvbeHzB/syOjIUxFDCnhSfzAL8R5vs40MgLFBorXACCOAEaWu0gRZl14vG8MR9AOJIZbmkjhusqBYZ3HTHw==",
"dev": true
}
}
},
"@angular/platform-browser": {
"version": "11.2.9",
"resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-11.2.9.tgz",
......
......@@ -3,11 +3,11 @@
<div class="row justify-content-center">
<div class="col-xl-5">
<div class="section_tittle text-center">
<h2 *ngIf="subject == 'physics'">Physics</h2>
<h2 *ngIf="subject == 'mathematics'">Mathematics</h2>
<h2 *ngIf="subject == 'biology'">Biology</h2>
<h2 *ngIf="subject == 'chemistry'">Chemistry</h2>
<h2 *ngIf="subject == 'all'">All Simulations</h2>
<h2 i18n *ngIf="subject == 'physics'">Physics</h2>
<h2 i18n *ngIf="subject == 'mathematics'">Mathematics</h2>
<h2 i18n *ngIf="subject == 'biology'">Biology</h2>
<h2 i18n *ngIf="subject == 'chemistry'">Chemistry</h2>
<h2 i18n *ngIf="subject == 'all'">All Simulations</h2>
</div>
</div>
</div>
......@@ -17,11 +17,11 @@
<div class="single_special_cource">
<img src='{{ "assets/images/Simulation/" + item.img_src}}' class="special_img" alt="">
<div class="special_cource_text">
<a class="btn_4" *ngIf="item.category == 'physics'">Physics</a>
<a class="btn_4" *ngIf="item.category == 'mathematics'">Mathematics</a>
<a class="btn_4" *ngIf="item.category == 'biology'">Biology</a>
<a class="btn_4" *ngIf="item.category == 'chemistry'">Chemistry</a>
<h4>Class: {{item.class}}</h4>
<a i18n class="btn_4" *ngIf="item.category == 'physics'">Physics</a>
<a i18n class="btn_4" *ngIf="item.category == 'mathematics'">Mathematics</a>
<a i18n class="btn_4" *ngIf="item.category == 'biology'">Biology</a>
<a i18n class="btn_4" *ngIf="item.category == 'chemistry'">Chemistry</a>
<h4 i18n>Class: </h4><h4>{{item.class}}</h4>
<a>
<h3>{{item.name}}</h3>
</a>
......
......@@ -26,7 +26,7 @@
<div class="single_feature">
<div class="single_feature_part">
<span class="single_feature_icon"><img [src]="item.img" height="60px" width="60px"></span>
<h4>{{item.value}}</h4>
<h4>{{item.value | translate}}</h4>
</div>
</div>
</div>
......
<?xml version="1.0" encoding="UTF-8" ?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en-US" datatype="plaintext" original="ng2.template">
<body>
<trans-unit id="4dd367b429bb03b2f88306424f104efd4e4dd7dd" datatype="html">
<source>Physics</source>
<target>भौतिक विज्ञान</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/Core/simulations/simulations.component.html</context>
<context context-type="linenumber">6</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/Core/simulations/simulations.component.html</context>
<context context-type="linenumber">20</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>
<?xml version="1.0" encoding="UTF-8" ?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en-US" datatype="plaintext" original="ng2.template">
<body>
<trans-unit id="4dd367b429bb03b2f88306424f104efd4e4dd7dd" datatype="html">
<source>Physics</source>
<target>భౌతికశాస్త్రం</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/Core/simulations/simulations.component.html</context>
<context context-type="linenumber">6</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/Core/simulations/simulations.component.html</context>
<context context-type="linenumber">20</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>
<?xml version="1.0" encoding="UTF-8" ?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en-US" datatype="plaintext" original="ng2.template">
<body>
<trans-unit id="4dd367b429bb03b2f88306424f104efd4e4dd7dd" datatype="html">
<source>Physics</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/Core/simulations/simulations.component.html</context>
<context context-type="linenumber">6</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/Core/simulations/simulations.component.html</context>
<context context-type="linenumber">20</context>
</context-group>
</trans-unit>
<trans-unit id="bd23fa63d9e522f0cbd94ea6dcae5dea9871a7b9" datatype="html">
<source>Mathematics</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/Core/simulations/simulations.component.html</context>
<context context-type="linenumber">7</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/Core/simulations/simulations.component.html</context>
<context context-type="linenumber">21</context>
</context-group>
</trans-unit>
<trans-unit id="106d2771f54d364752be04353f90ccb4b35ff493" datatype="html">
<source>Biology</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/Core/simulations/simulations.component.html</context>
<context context-type="linenumber">8</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/Core/simulations/simulations.component.html</context>
<context context-type="linenumber">22</context>
</context-group>
</trans-unit>
<trans-unit id="8eb0ff9f09e9db846b2b12d4fc63dbeda920235f" datatype="html">
<source>Chemistry</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/Core/simulations/simulations.component.html</context>
<context context-type="linenumber">9</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/Core/simulations/simulations.component.html</context>
<context context-type="linenumber">23</context>
</context-group>
</trans-unit>
<trans-unit id="818ccbece4b271a03495eacf14425157576735a0" datatype="html">
<source>All Simulations</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/Core/simulations/simulations.component.html</context>
<context context-type="linenumber">10</context>
</context-group>
</trans-unit>
<trans-unit id="5a98df8e9776a01ba9d88718c5b501d6fae41aa2" datatype="html">
<source>Class: </source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/Core/simulations/simulations.component.html</context>
<context context-type="linenumber">24</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>
/***************************************************************************************************
* Load `$localize` onto the global scope - used if i18n tags appear in Angular templates.
*/
import '@angular/localize/init';
/**
* This file includes polyfills needed by Angular and is loaded before the app.
* You can add your own extra polyfills to this file.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment