Sha256: d35b131c9ab14de5a617987b171c5af4fb45f7e3ae1ce9b521dfdb62c86e89b5

Contents?: true

Size: 341 Bytes

Versions: 35

Compression:

Stored size: 341 Bytes

Contents

require 'test_helper'

class LocalizationTest < MiniTest::Test
  def test_localization
    assert_equal 'Dutch', as_(:dutch)
    assert_equal 'dutch', as_('dutch')
    I18n.backend.store_translations :en, :active_scaffold => {:create_model => 'Create %{model}'}
    assert_equal 'Create Test', as_(:create_model, :model => 'Test')
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
active_scaffold-3.5.5 test/misc/lang_test.rb
active_scaffold-3.5.4 test/misc/lang_test.rb
active_scaffold-3.5.3 test/misc/lang_test.rb
active_scaffold-3.5.2 test/misc/lang_test.rb
active_scaffold-3.5.1 test/misc/lang_test.rb
active_scaffold-3.5.0 test/misc/lang_test.rb
active_scaffold-3.4.43 test/misc/lang_test.rb
active_scaffold-3.4.42 test/misc/lang_test.rb
active_scaffold-3.4.41.1 test/misc/lang_test.rb
active_scaffold-3.4.41 test/misc/lang_test.rb
active_scaffold-3.4.40 test/misc/lang_test.rb
active_scaffold-3.4.39 test/misc/lang_test.rb
active_scaffold-3.4.38 test/misc/lang_test.rb
active_scaffold-3.4.37 test/misc/lang_test.rb
active_scaffold-3.4.36 test/misc/lang_test.rb
active_scaffold-3.4.35 test/misc/lang_test.rb
active_scaffold-3.4.34 test/misc/lang_test.rb
active_scaffold-3.4.33 test/misc/lang_test.rb
active_scaffold-3.4.32 test/misc/lang_test.rb
active_scaffold-3.4.31 test/misc/lang_test.rb