laratext 0.1.0

Laratext for Laravel Rust: translation keys with their source text, and auto-translation with OpenAI, Claude, Google Translate or Translatorio.
Documentation
1
2
3
4
5
6
7
8
import { text } from './index.js';

/**
 * Alpine.plugin(laratext) gives every component $text('key', 'Source').
 */
export default function laratext(Alpine) {
  Alpine.magic('text', () => text);
}