Skip to content

Commit 82fa27a

Browse files
committed
bug fix langchange
1 parent 33c5e2c commit 82fa27a

File tree

7 files changed

+20
-9
lines changed

7 files changed

+20
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
<a name="1.0.0-beta.04"></a>
2-
# [1.0.0-beta.04] (2016-08-31)
3-
2+
# [1.0.0-beta.04] (2016-09-13)
43

54
### Features
6-
75
* **[#1: Add / Remove languages](https://github.com/ganesh35/ng2-Profile/issues/1)**: Adding / removing content languages simplified.
86
* **[#2: EU Cookie Compliance](https://github.com/ganesh35/ng2-Profile/issues/2)**: Created Cookie page and implemented Cookie Concent
97
* **#[3: 404 implementation](https://github.com/ganesh35/ng2-Profile/issues/3)**: 404 Page implemented
108
* **[#4: Possibility to add more pages](https://github.com/ganesh35/ng2-Profile/issues/4)**: Implemented a page component to add and handle more pages when needed.
119

12-
13-
14-
10+
### Bug Fixes
11+
* **[#6: Active language flag should not be clickable](https://github.com/ganesh35/ng2-Profile/issues/6)**: Active language has been fixed in app.component.ts
1512

1613

1714
<a name="1.0.0-beta.03"></a>
18-
# [1.0.0-beta.03] Branch : 06_Deutsch
15+
# [1.0.0-beta.03]
1916

2017
### Bug Fixes
2118
* **Logo Link:** Fixed logo link reload problem in theme.tpl.html

app/app.component.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/app.component.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/app.component.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ export class AppComponent implements OnInit {
1414
public langList = [];
1515
public profile: any;
1616
public showCookieConcent = 'true';
17+
public currentLang = '';
1718
constructor(private translate: TranslateService) {
1819
//translate.setDefaultLang('en');
1920
translate.setDefaultLang(myGlobals.languageDefault);
2021
translate.use(myGlobals.languageDefault);
22+
this.currentLang=myGlobals.languageDefault;
2123
}
2224

2325
ngOnInit(){
@@ -33,9 +35,12 @@ export class AppComponent implements OnInit {
3335

3436
onLangChange(val){
3537
this.translate.use(val);
38+
this.currentLang=val;
39+
3640
this.translate.get('Profile').subscribe((res: string) => {
3741
this.profile = res;
3842
});
43+
3944
}
4045

4146
closeCookieConcent(){

app/globals.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/globals.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/globals.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@ export var languageList = [
1414
];
1515
export var languageDefault = 'en';
1616

17+
18+
19+
export var mainMenuItems=[
20+
21+
];

0 commit comments

Comments
 (0)