Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Required translation updates for Spanish #1028

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Translation needed for #991
  • Loading branch information
alemohamad authored and TheHandyOwl committed Dec 14, 2024
commit 38ccfa6075ef9de8355ffd831b5fd032f75810d9
4 changes: 2 additions & 2 deletions docs/leaf/getting-started.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Leaf es un potente lenguaje de plantillas con una sintaxis inspirada en Swift. P
El primer paso para usar Leaf es agregarlo como una dependencia en tu proyecto en tu archivo de manifiesto del paquete SPM.

```swift
// swift-tools-version:5.2
// swift-tools-version:5.9
alemohamad marked this conversation as resolved.
Show resolved Hide resolved
import PackageDescription

let package = Package(
Expand All @@ -17,7 +17,7 @@ let package = Package(
],
dependencies: [
/// Cualquier otra dependencia ...
.package(url: "https://github.com/vapor/leaf.git", from: "4.0.0"),
.package(url: "https://github.com/vapor/leaf.git", from: "4.4.0"),
],
targets: [
.target(name: "App", dependencies: [
Expand Down
6 changes: 6 additions & 0 deletions docs/leaf/overview.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,12 @@ Puede pasar una cadena de formateado de fecha personalizada como segundo argumen
The date is #date(now, "yyyy-MM-dd")
```

También puedes pasar un ID de zona horaria para el formateador de fechas como tercer argumento. Consulta la documentación de Swift sobre [`DateFormatter.timeZone`](https://developer.apple.com/documentation/foundation/dateformatter/1411406-timezone) y [`TimeZone`](https://developer.apple.com/documentation/foundation/timezone) para más información.

```leaf
The date is #date(now, "yyyy-MM-dd", "America/New_York")
```

#### `#unsafeHTML`

La etiqueta `#unsafeHTML` actúa como una etiqueta variable - p. ej. `#(variable)`. Sin embargo, no escapa ningún HTML que `variable` pueda contener:
Expand Down