mirror of
https://github.com/OutlineFoundation/outline-server.git
synced 2026-08-04 14:37:34 +00:00
Rename normalized to normalizedLanguage
This commit is contained in:
parent
ede3057adf
commit
8d802b619b
1 changed files with 3 additions and 3 deletions
|
|
@ -14,14 +14,14 @@
|
|||
|
||||
export class LanguageCode {
|
||||
private language: string;
|
||||
private normalized: string;
|
||||
private normalizedLanguage: string;
|
||||
|
||||
constructor(languageCodeStr: string) {
|
||||
this.language = languageCodeStr;
|
||||
this.normalized = languageCodeStr.toLowerCase();
|
||||
this.normalizedLanguage = languageCodeStr.toLowerCase();
|
||||
}
|
||||
matches(other: LanguageCode): boolean {
|
||||
return this.normalized === other.normalized;
|
||||
return this.normalizedLanguage === other.normalizedLanguage;
|
||||
}
|
||||
string(): string {
|
||||
return this.language;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue