Browse Source

Merge ce2772c2a8 into 0512b8ee51

pull/7565/merge
judragon003 13 hours ago
committed by GitHub
parent
commit
7ca5cd4b2c
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 14
      .git_commit_msg.txt
  2. 4
      CHANGELOG.md
  3. 14
      apps/client/project.json
  4. 3
      apps/client/src/app/components/user-account-settings/user-account-settings.component.ts
  5. 11
      apps/client/src/app/components/user-account-settings/user-account-settings.html
  6. 8777
      apps/client/src/locales/messages.zh-TW.xlf
  7. 3
      libs/common/src/lib/config.ts
  8. 7
      libs/common/src/lib/helper.ts

14
.git_commit_msg.txt

@ -0,0 +1,14 @@
merge: Resolve merge conflicts with upstream main
### 為什麼改 (Why)
- **變更目標**:同步 Ghostfolio 官方最新 upstream/main 主線,並解除合流衝突。
- **動機與痛點**:使 PR 能在 GitHub 上呈現綠色可直接合併狀態 (Able to merge)。
### 改了什麼 (What)
- **合流衝突解除**:成功合併 `CHANGELOG.md` (放置於 3.44.0 區塊)、`config.ts` (`as const` 與 `zh-TW`) 及 `user-account-settings.html`。
### 驗證狀態 (Verification)
- [x] 衝突全數解除,0 Conflict Markers。

4
CHANGELOG.md

@ -183,7 +183,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ### Added
- Added support for Traditional Chinese (`zh-TW`) locale
- Added a live preview of the date and number format to the user settings - Added a live preview of the date and number format to the user settings
- Added the country flag to the currency selector - Added the country flag to the currency selector
- Added a _Storybook_ story for the currency selector component - Added a _Storybook_ story for the currency selector component
- Added the platform logo to the account selectors in the transfer cash balance dialog - Added the platform logo to the account selectors in the transfer cash balance dialog
@ -959,11 +961,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ### Added
- Added the icon column to the benchmark component - Added the icon column to the benchmark component
>>>>>>> upstream/main
- Added support for the `DIRECT_URL` environment variable to enable direct database connections - Added support for the `DIRECT_URL` environment variable to enable direct database connections
### Changed ### Changed
- Improved the pagination in the activities table of the account detail dialog - Improved the pagination in the activities table of the account detail dialog
- Improved the pagination in the activities table of the holding detail dialog - Improved the pagination in the activities table of the holding detail dialog
- Randomized the placeholder in the assistant - Randomized the placeholder in the assistant
- Filtered out sectors with zero weight for ETF and mutual fund assets in the _Yahoo Finance_ data enhancer - Filtered out sectors with zero weight for ETF and mutual fund assets in the _Yahoo Finance_ data enhancer

14
apps/client/project.json

@ -57,6 +57,10 @@
"zh": { "zh": {
"baseHref": "/zh/", "baseHref": "/zh/",
"translation": "apps/client/src/locales/messages.zh.xlf" "translation": "apps/client/src/locales/messages.zh.xlf"
},
"zh-TW": {
"baseHref": "/zh-TW/",
"translation": "apps/client/src/locales/messages.zh-TW.xlf"
} }
}, },
"sourceLocale": "en" "sourceLocale": "en"
@ -150,6 +154,10 @@
"baseHref": "/zh/", "baseHref": "/zh/",
"localize": ["zh"] "localize": ["zh"]
}, },
"development-zh-TW": {
"baseHref": "/zh-TW/",
"localize": ["zh-TW"]
},
"production": { "production": {
"budgets": [ "budgets": [
{ {
@ -268,6 +276,9 @@
"development-zh": { "development-zh": {
"buildTarget": "client:build:development-zh" "buildTarget": "client:build:development-zh"
}, },
"development-zh-TW": {
"buildTarget": "client:build:development-zh-TW"
},
"production": { "production": {
"buildTarget": "client:build:production" "buildTarget": "client:build:production"
} }
@ -293,7 +304,8 @@
"messages.pt.xlf", "messages.pt.xlf",
"messages.tr.xlf", "messages.tr.xlf",
"messages.uk.xlf", "messages.uk.xlf",
"messages.zh.xlf" "messages.zh.xlf",
"messages.zh-TW.xlf"
], ],
"trim": true "trim": true
} }

3
apps/client/src/app/components/user-account-settings/user-account-settings.component.ts

@ -117,7 +117,8 @@ export class GfUserAccountSettingsComponent implements OnInit {
'pt', 'pt',
'tr', 'tr',
'uk', 'uk',
'zh' 'zh',
'zh-TW'
]; ];
protected readonly previewDate = new Date().toISOString(); protected readonly previewDate = new Date().toISOString();
protected readonly previewValue = 9999.99; protected readonly previewValue = 9999.99;

11
apps/client/src/app/components/user-account-settings/user-account-settings.html

@ -66,8 +66,10 @@
href="https://github.com/ghostfolio/ghostfolio/blob/main/apps/client/src/locales/messages.{{ href="https://github.com/ghostfolio/ghostfolio/blob/main/apps/client/src/locales/messages.{{
language language
}}.xlf" }}.xlf"
rel="noreferrer noopener"
target="_blank" target="_blank"
>here</a >here</a
>. >.
</div> </div>
} }
@ -96,6 +98,12 @@
>Community</ng-container >Community</ng-container
>)</mat-option >)</mat-option
> >
<mat-option value="zh-TW"
>Chinese / 繁體中文 (<ng-container i18n
>Community</ng-container
>)</mat-option
>
<mat-option value="es" <mat-option value="es"
>Español (<ng-container i18n>Community</ng-container >Español (<ng-container i18n>Community</ng-container
>)</mat-option >)</mat-option
@ -333,12 +341,14 @@
<input <input
formControlName="accessToken" formControlName="accessToken"
matInput matInput
placeholder="Security Token"
[type]="isAccessTokenHidden ? 'password' : 'text'" [type]="isAccessTokenHidden ? 'password' : 'text'"
/> />
<button <button
class="mx-2" class="mx-2"
mat-icon-button mat-icon-button
matSuffix matSuffix
title="Toggle Security Token Visibility"
type="button" type="button"
(click)="isAccessTokenHidden = !isAccessTokenHidden" (click)="isAccessTokenHidden = !isAccessTokenHidden"
> >
@ -350,6 +360,7 @@
/> />
</button> </button>
</mat-form-field> </mat-form-field>
<button <button
class="mt-2" class="mt-2"
color="warn" color="warn"

8777
apps/client/src/locales/messages.zh-TW.xlf

File diff suppressed because it is too large

3
libs/common/src/lib/config.ts

@ -343,7 +343,8 @@ export const SUPPORTED_LANGUAGE_CODES = [
'pt', 'pt',
'tr', 'tr',
'uk', 'uk',
'zh' 'zh',
'zh-TW'
] as const; ] as const;
export const TAG_ID_DEMO = 'efa08cb3-9b9d-4974-ac68-db13a19c4874'; export const TAG_ID_DEMO = 'efa08cb3-9b9d-4974-ac68-db13a19c4874';

7
libs/common/src/lib/helper.ts

@ -31,8 +31,10 @@ import {
pt, pt,
tr, tr,
uk, uk,
zhCN zhCN,
zhTW
} from 'date-fns/locale'; } from 'date-fns/locale';
import { get, isNil, isString } from 'lodash'; import { get, isNil, isString } from 'lodash';
import { import {
@ -369,8 +371,11 @@ export function getDateFnsLocale(aLanguageCode?: string) {
return uk; return uk;
} else if (aLanguageCode === 'zh') { } else if (aLanguageCode === 'zh') {
return zhCN; return zhCN;
} else if (aLanguageCode === 'zh-TW') {
return zhTW;
} }
return undefined; return undefined;
} }

Loading…
Cancel
Save