Skip to content

Commit

Permalink
docs: set default lang to zh-cn
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Apr 22, 2020
1 parent 0da254f commit fa7f413
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,7 @@ export class AppComponent implements OnInit {
public translate: TranslateService,
private storage: StorageMap
) {
if (environment.ci) {
translate.use('zh-cn');
} else {
if (translate.getBrowserLang().includes('zh')) {
translate.use('zh-cn');
} else {
translate.use('en');
}
}
translate.use('zh-cn');
}

// component-todo: refactor
Expand Down

0 comments on commit fa7f413

Please sign in to comment.