Browse Source

Updated language packs, set fallback font family on style helper for those of us who don\'t have access to Museo Sans

master
Max Maton 7 years ago
parent
commit
f48c7773f6
  1. 3
      src/styles/helpers.js
  2. 2
      static/i18n/en/emptyState.yml
  3. 2
      static/i18n/fr/emptyState.yml

3
src/styles/helpers.js

@ -26,9 +26,10 @@ export const lighten = (c: string, a: number) =>
export const ff = (v: string) => {
const [font, type = 'Regular'] = v.split('|')
const { style, weight } = fontFamilies[font][type]
const fallback = fontFamilies[font]['fallback'] || 'Arial'
return {
fontFamily: font,
fontFamily: `${font}, ${fallback}`,
fontWeight: weight,
fontStyle: style,
}

2
static/i18n/en/emptyState.yml

@ -1,5 +1,5 @@
sidebar:
text: You don’t have any account for the moment. Press the + button to create an account
text: You don’t have any accounts at the moment. Press the + button to create an account
dashboard:
title: This is a title, use it with caution
desc: Please create a new account or recover an old account from your Ledger device.

2
static/i18n/fr/emptyState.yml

@ -1,6 +1,6 @@
---
sidebar:
text: You don’t have any account for the moment. Press the + button to create an account
text: You don’t have any accounts at the moment. Press the + button to create an account
dashboard:
title: This is a title, use it with caution
desc: Please create a new account or recover an old account from your Ledger device.

Loading…
Cancel
Save