From f11e19d56c91e1807b4c9f49112af9eab3243762 Mon Sep 17 00:00:00 2001 From: Robert Prehn Date: Mon, 27 Jul 2020 17:26:59 -0500 Subject: [PATCH] feat: Use consistent title tags and pull from i18n --- apps/admin/lib/admin/templates/layout/app.html.eex | 2 +- apps/auth_web/lib/auth_web/templates/layout/app.html.eex | 2 +- apps/content/lib/content_web/templates/layout/app.html.eex | 2 +- apps/content/lib/content_web/views/layout_view.ex | 4 ++-- apps/core/lib/core_web/templates/layout/app.html.eex | 2 +- config/i18n/en.yml | 3 +++ 6 files changed, 9 insertions(+), 6 deletions(-) diff --git a/apps/admin/lib/admin/templates/layout/app.html.eex b/apps/admin/lib/admin/templates/layout/app.html.eex index 0502f679..0cd26560 100644 --- a/apps/admin/lib/admin/templates/layout/app.html.eex +++ b/apps/admin/lib/admin/templates/layout/app.html.eex @@ -4,7 +4,7 @@ - Admin · Phoenix Framework + <%= I18n.t! "en", "site.title" %> "/> diff --git a/apps/auth_web/lib/auth_web/templates/layout/app.html.eex b/apps/auth_web/lib/auth_web/templates/layout/app.html.eex index bfa2ecda..9d3d6801 100644 --- a/apps/auth_web/lib/auth_web/templates/layout/app.html.eex +++ b/apps/auth_web/lib/auth_web/templates/layout/app.html.eex @@ -4,7 +4,7 @@ - Core · Phoenix Framework + <%= I18n.t! "en", "site.title" %> "/> diff --git a/apps/content/lib/content_web/templates/layout/app.html.eex b/apps/content/lib/content_web/templates/layout/app.html.eex index 1de25c60..b5f70297 100644 --- a/apps/content/lib/content_web/templates/layout/app.html.eex +++ b/apps/content/lib/content_web/templates/layout/app.html.eex @@ -4,7 +4,7 @@ - Content · Phoenix Framework + <%= I18n.t! "en", "site.title" %> "/> diff --git a/apps/content/lib/content_web/views/layout_view.ex b/apps/content/lib/content_web/views/layout_view.ex index 06df8db4..bcf1a294 100644 --- a/apps/content/lib/content_web/views/layout_view.ex +++ b/apps/content/lib/content_web/views/layout_view.ex @@ -20,7 +20,7 @@ defmodule Content.LayoutView do opt = %Option{} -> opt.option_value _ -> - "Hello" + I18n.t! "en", "site.title" end end @@ -38,7 +38,7 @@ defmodule Content.LayoutView do opt = %Option{} -> opt.option_value _ -> - "Yet another website" + I18n.t! "en", "site.excerpt" end end diff --git a/apps/core/lib/core_web/templates/layout/app.html.eex b/apps/core/lib/core_web/templates/layout/app.html.eex index 546918c9..41d1f970 100644 --- a/apps/core/lib/core_web/templates/layout/app.html.eex +++ b/apps/core/lib/core_web/templates/layout/app.html.eex @@ -4,7 +4,7 @@ - Core · Phoenix Framework + <%= I18n.t! "en", "site.title" %> "/> diff --git a/config/i18n/en.yml b/config/i18n/en.yml index 76742d8d..e7c1dfb0 100644 --- a/config/i18n/en.yml +++ b/config/i18n/en.yml @@ -3,3 +3,6 @@ email: name: "" address: "" phone: "" +site: + title: Legendary + excerpt: Yet another website.