diff --git a/app/views/ahoy_captain/stats/show.html.erb b/app/views/ahoy_captain/stats/show.html.erb
index 0f6ef2b..bd717f0 100644
--- a/app/views/ahoy_captain/stats/show.html.erb
+++ b/app/views/ahoy_captain/stats/show.html.erb
@@ -1,10 +1,10 @@
<%= turbo_frame_tag :stats, data: { controller: "active-frame-link" } do %>
<% if @presenter.send(:range).realtime? %>
- <%= render stats_container(@presenter.unique_visitors, stats_unique_visitors_url(search_params), "Unique Visits (30 min)", :number_with_delimiter, true) %>
+ <%= render stats_container(@presenter.unique_visitors, stats_unique_visitors_url(search_params), "#{t('ahoy_captain.stats.titles.unique_visits')} (30 min)", :number_with_delimiter, true) %>
<%= render stats_container(@presenter.total_pageviews, stats_total_pageviews_path(search_params), "Total Pageviews (30 min)", :number_with_delimiter) %>
<% else %>
- <%= render stats_container(@presenter.unique_visitors, stats_unique_visitors_url(search_params), "Unique Visits", :number_with_delimiter, true) %>
+ <%= render stats_container(@presenter.unique_visitors, stats_unique_visitors_url(search_params), t('ahoy_captain.stats.titles.unique_visits'), :number_with_delimiter, true) %>
<%= render stats_container(@presenter.total_visits, stats_total_visits_path(search_params), "Total Visits", :number_with_delimiter) %>
<%= render stats_container(@presenter.total_pageviews, stats_total_pageviews_path(search_params), "Total Pageviews", :number_with_delimiter) %>
<%= render stats_container(@presenter.views_per_visit, stats_views_per_visits_path(search_params), "Views per Visit", :number_with_delimiter) %>
diff --git a/config/locales/ahoy_captain/en.yml b/config/locales/ahoy_captain/en.yml
new file mode 100644
index 0000000..8327622
--- /dev/null
+++ b/config/locales/ahoy_captain/en.yml
@@ -0,0 +1,10 @@
+---
+en:
+ ahoy_captain:
+ tiles:
+ titles:
+ top_sources: Top Sources
+ stats:
+ titles:
+ unique_visits: Unique Visits
+
diff --git a/lib/ahoy_captain/configuration.rb b/lib/ahoy_captain/configuration.rb
index c94be69..c8368d0 100644
--- a/lib/ahoy_captain/configuration.rb
+++ b/lib/ahoy_captain/configuration.rb
@@ -3,7 +3,7 @@
module AhoyCaptain
class Configuration
- attr_accessor :view_name, :theme, :realtime_interval
+ attr_accessor :view_name, :theme, :realtime_interval, :locale
attr_reader :goals, :funnels, :cache, :ranges, :disabled_widgets, :event, :models, :filters, :predicate_labels
def initialize
@goals = GoalCollection.new
@@ -35,6 +35,7 @@ def initialize
@realtime_interval = 30.seconds
@disabled_widgets = []
+ @locale = :en
end
def goal(id, &block)