Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Turkish Translations #2182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
raclim merged 6 commits into processing:develop from cemergin:turkish_translations
Apr 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions client/components/Nav.jsx
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,16 @@ class Nav extends React.PureComponent {
正體中文
</button>
</li>
<li className="nav__dropdown-item">
<button
onFocus={this.handleFocusForLang}
onBlur={this.handleBlur}
value="tr"
onClick={(e) => this.handleLangSelection(e)}
>
Türkçe
</button>
</li>
</ul>
</li>
</React.Fragment>
Expand Down
12 changes: 8 additions & 4 deletions client/i18n.js
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import {
zhCN,
zhTW,
uk,
sv
sv,
tr
} from 'date-fns/locale';

const fallbackLng = ['en-US'];
Expand All @@ -32,7 +33,8 @@ const availableLanguages = [
'sv',
'uk-UA',
'zh-CN',
'zh-TW'
'zh-TW',
'tr'
];

export function languageKeyToLabel(lang) {
Expand All @@ -49,7 +51,8 @@ export function languageKeyToLabel(lang) {
sv: 'Svenska',
'uk-UA': 'Українська',
'zh-CN': '简体中文',
'zh-TW': '正體中文'
'zh-TW': '正體中文',
tr: 'Türkçe'
};
return languageMap[lang];
}
Expand All @@ -68,7 +71,8 @@ export function languageKeyToDateLocale(lang) {
sv,
'uk-UA': uk,
'zh-CN': zhCN,
'zh-TW': zhTW
'zh-TW': zhTW,
tr
};
return languageMap[lang];
}
Expand Down
Loading

AltStyle によって変換されたページ (->オリジナル) /