Improve linking and link more things

This commit is contained in:
Julia Friesel
2018-12-23 18:15:03 +01:00
parent 300d7178f1
commit 27b4a454ec
7 changed files with 76 additions and 39 deletions
@@ -0,0 +1,6 @@
import {links} from '../../i18n/en/settings'
export default function(url) {
const link = Object.values(links).find(link => link.url === url)
return link ? link.text : url
}