Skip to content

Commit

Permalink
style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
uonr committed Sep 13, 2024
1 parent 5f21ec9 commit 209821b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/server/src/users/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,8 @@ pub async fn reset_password(req: Request<impl Body>) -> Result<(), AppError> {
&email,
include_str!("../../text/reset-password/title.zh-TW.txt").trim(),
&format!(include_str!("../../text/reset-password/content.zh-TW.html"), token),
).await
)
.await
}
"ja" => {
mail::send(
Expand Down
2 changes: 1 addition & 1 deletion packages/common/locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const loadMessages = async (locale: Locale): Promise<IntlMessages> => {

export const narrowLocale = (locale: string): Locale | null => {
locale = locale.toLowerCase();
if (locale === 'zh-tw' || locale === "zh-hant") {
if (locale === 'zh-tw' || locale === 'zh-hant') {
return 'zh-TW';
} else if (locale === 'zh' || locale.startsWith('zh-')) {
return 'zh-CN';
Expand Down

0 comments on commit 209821b

Please sign in to comment.