File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
fluent-react/examples/hello-world/src Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ export default function App() {
77 < Localized id = "title" >
88 < h1 > Hello, world!</ h1 >
99 </ Localized >
10+ < Localized id = 'today-is' $date = { new Date ( ) } >
11+ < p >
12+ { 'Today is { DATETIME($date, month: "long", day: "numeric") }.' }
13+ </ p >
14+ </ Localized >
1015 </ div >
1116 ) ;
1217}
Original file line number Diff line number Diff line change @@ -5,9 +5,11 @@ import { negotiateLanguages } from 'fluent-langneg';
55const MESSAGES_ALL = {
66 'pl' : `
77title = Witaj świecie!
8+ today-is = Dziś jest { DATETIME($date, month: "long", day: "numeric") }.
89 ` ,
910 'en-US' : `
1011title = Hello, world!
12+ today-is = Today is { DATETIME($date, month: "long", day: "numeric") }.
1113 ` ,
1214} ;
1315
You can’t perform that action at this time.
0 commit comments