Skip to content

Commit

Permalink
things
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed Oct 3, 2024
1 parent f30a941 commit fb1079e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 288 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ A WIP super small and incredibly fast localisation library *with no documentatio
- Simple string/interpolation format
- Pluralisation
- In-code formatters
- Bun for dev and TS testing

## To-do

Expand Down Expand Up @@ -101,6 +102,8 @@ Placeholder positions aren't needed.
// "Click {$slot(link, here)} to {action} this {item}." // not good, it's a valid getter
// "Click <{link} here> to {action} this {item}." // difficult
"Click {<link>here} to {action} this {item}." // conflicts with "don't translate inside placeholders"
"Click <link% here %> to {action} this {item}."
"Click {% link; here %} to {action} this {item}."
```


Expand All @@ -117,5 +120,5 @@ https://svelte.dev/docs/special-elements#slot
```yaml
variable: Hello {name}
getter: I said "{$t(slot)}" # flatMap
slot: Please click {<slot1>here} or {<slot2>here}
slot: Please click <slot1% here %> or <slot2% here %>
```
Loading

0 comments on commit fb1079e

Please sign in to comment.