Popularity
1.7
Declining
Activity
0.0
Stable
3
2
0
Programming language: Crystal
License: MIT License
Tags:
Framework Components
kemalyst-i18n alternatives and similar shards
Based on the "Framework Components" category.
Alternatively, view kemalyst-i18n alternatives based on common mentions on social networks and blogs.
-
shrine.cr
File Attachment toolkit for Crystal applications. Heavily inspired by Shrine for Ruby. -
Exception Page
An exceptional exception page for Crystal web libraries and frameworks -
praetorian
A minimalist Crystal authorization system inspired by https://github.com/varvet/pundit. -
motion.cr
Motion is a framework for building reactive, real-time frontend UI components in your Amber application using pure Crystal that are reusable, testable & encapsulated. -
kemal-auth-token
Kemal middleware to authentication via HTTP header token using JWT -
device_detector
Crystal shard for device detection by User-Agent string -
mochi
Mochi is a authentication shard inspired by devise. Mochi is designed for the Amber framework with support for both Granite & Jennifer ORM's. -
mime-types.cr
MIME Types for Crystal :: A port of the Ruby MIME::Types library -
Athena Event Dispatcher
A Mediator and Observer pattern event library -
request_id
Middleware for generates / pick up a unique request ID for Crystal servers. -
Athena Negotiation
Framework agnostic content negotiation library
Static code analysis for 29 languages.
Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
Promo
www.sonarqube.org
Do you think we are missing an alternative of kemalyst-i18n or a related project?
README
kemalyst-i18n
I18n integration to kemalyst framework
Installation
Add this to your application's shard.yml
:
dependencies:
kemalyst-i18n:
github: TechMagister/kemalyst-i18n
Usage
Create a file : config/i18n.cr
require "kemalyst-i18n"
Kemalyst::I18n.config do |config|
# Backend default to I18n::Backend::Yaml
# config.backend = I18n::Backend::Yaml.new
# Default locale ( default to "en" )
# config.default_locale = "en"
# Separator between sub levels of data (default to '.')
# ex : I18n.translate("some#thing") instead of "some.thing"
# config.default_separator = '.'
# Returns the current exception handler. Defaults to an instance of
# I18n::ExceptionHandler.
# config.exception_handler = ExceptionHandler.new
# The path from where the translations should be loaded
config.load_path += ["./locales"]
end
# !! don't forget to init !!
I18n.init
Add the handler to the list into config/application.cr
Kemalyst::Application.config do |config|
...
# place it BEFORE the router
handlers = [
...
Kemalyst::I18n::Handler.instance,
Kemalyst::Handler::Router.instance
]
...
end
Contributing
- Fork it ( https://github.com/TechMagister/kemalyst-i18n/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- TechMagister Arnaud Fernandés - creator, maintainer