Browse Source

Add locales

pull/1185/head
Thomas 3 years ago
parent
commit
50f685cb13
  1. 2
      apps/client/src/app/components/home-market/home-market.component.ts
  2. 4
      apps/client/src/app/components/home-market/home-market.html
  3. 16
      apps/client/src/locales/messages.de.xlf
  4. 14
      apps/client/src/locales/messages.xlf

2
apps/client/src/app/components/home-market/home-market.component.ts

@ -21,6 +21,8 @@ import { takeUntil } from 'rxjs/operators';
export class HomeMarketComponent implements OnDestroy, OnInit { export class HomeMarketComponent implements OnDestroy, OnInit {
public benchmarks: Benchmark[]; public benchmarks: Benchmark[];
public fearAndGreedIndex: number; public fearAndGreedIndex: number;
public fearLabel = $localize`Fear`;
public greedLabel = $localize`Greed`;
public hasPermissionToAccessFearAndGreedIndex: boolean; public hasPermissionToAccessFearAndGreedIndex: boolean;
public historicalData: HistoricalDataItem[]; public historicalData: HistoricalDataItem[];
public info: InfoItem; public info: InfoItem;

4
apps/client/src/app/components/home-market/home-market.html

@ -9,13 +9,13 @@
class="mb-3" class="mb-3"
symbol="Fear & Greed Index" symbol="Fear & Greed Index"
yMax="100" yMax="100"
yMaxLabel="Greed"
yMin="0" yMin="0"
yMinLabel="Fear"
[historicalDataItems]="historicalData" [historicalDataItems]="historicalData"
[locale]="user?.settings?.locale" [locale]="user?.settings?.locale"
[showXAxis]="true" [showXAxis]="true"
[showYAxis]="true" [showYAxis]="true"
[yMaxLabel]="greedLabel"
[yMinLabel]="fearLabel"
></gf-line-chart> ></gf-line-chart>
<gf-fear-and-greed-index <gf-fear-and-greed-index
class="d-flex justify-content-center" class="d-flex justify-content-center"

16
apps/client/src/locales/messages.de.xlf

@ -2585,6 +2585,22 @@
<context context-type="linenumber">86</context> <context context-type="linenumber">86</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="5486880308148746399" datatype="html">
<source>Fear</source>
<target state="translated">Angst</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/components/home-market/home-market.component.ts</context>
<context context-type="linenumber">24</context>
</context-group>
</trans-unit>
<trans-unit id="6844699413925472826" datatype="html">
<source>Greed</source>
<target state="translated">Gier</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/components/home-market/home-market.component.ts</context>
<context context-type="linenumber">25</context>
</context-group>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

14
apps/client/src/locales/messages.xlf

@ -2309,6 +2309,20 @@
<context context-type="linenumber">77</context> <context context-type="linenumber">77</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="5486880308148746399" datatype="html">
<source>Fear</source>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/components/home-market/home-market.component.ts</context>
<context context-type="linenumber">24</context>
</context-group>
</trans-unit>
<trans-unit id="6844699413925472826" datatype="html">
<source>Greed</source>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/components/home-market/home-market.component.ts</context>
<context context-type="linenumber">25</context>
</context-group>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>
Loading…
Cancel
Save