
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Simple, automatic translations for your Rails app with https://translatedrb.com.
Translated can handle both plain text and rich text (using Action Text).
These helpers will let you work with the content attribute like you normally would. The return value of this attribute will always be in the language specified by I18n.locale
. So if it's set to :es
, then you'll get Spanish.
When you set the value, it will save that for the current locale and then create translations for every locale listed in the I18n.available_locales
list.
For plain text, simply add this to your model:
class Message < ApplicationRecord
has_translated_text_field :content
end
For rich text:
class Message < ApplicationRecord
has_translated_rich_text :content
end
You can use this attribute just like any other Action Text attribute.
Add this line to your application's Gemfile:
gem "translated"
And then execute:
bundle
Install the migrations:
bin/rails translated:install:migrations
Get your API key from https://translatedrb.com
Create an initializer config/initializers/translated.rb
Translated.api_key = 'API KEY from translatedrb.com'
# Optionally, you can configure which environments you would like translated.
# By default, it will translate development and production
# Translated.environments = %w(development production)
Check out an example Rails project with Translated already installed here.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that translated demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.