Use site()->visit() to properly set language context for virtual pages. This ensures UI translations and language-specific content work correctly on both /slug (French) and /en/slug (English) routes. Changes: - Add site()->visit($page, $lang) in routes to set page language - Create product controller for language detection - Fix add-to-cart button to update text in .txt div instead of button - Remove broken hooks approach Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
17 lines
377 B
JSON
17 lines
377 B
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"WebSearch",
|
|
"Bash(git add:*)",
|
|
"Bash(git commit:*)",
|
|
"Bash(find:*)",
|
|
"Bash(curl:*)",
|
|
"WebFetch(domain:snipcart.com)",
|
|
"Bash(grep:*)",
|
|
"Bash(npm run build:*)",
|
|
"Bash(php test-shopify.php:*)",
|
|
"WebFetch(domain:getkirby.com)",
|
|
"WebFetch(domain:forum.getkirby.com)"
|
|
]
|
|
}
|
|
}
|