Skip to content

AM / PM in non-english localisation #1156

Open
@podcasthosting

Description

Flux version

v2.0.7

Livewire version

v3.x

Tailwind version

v4.x

Browser and Operating System

Firefox

What is the problem?

Looking at the area chart in the official documentation the dates are not properly localized (for German and most likely other non-english languages).

Following the "Uhr" (o clock) comes a PM / AM e.g. 9 Uhr PM where it should show "21 Uhr" in German instead.

Image

Code snippets

   <flux:chart wire:model="data" class="aspect-3/1">
       <flux:chart.svg>
           <flux:chart.line field="stock" class="text-blue-500 dark:text-blue-400" curve="none" />
          <flux:chart.area field="stock" class="text-blue-200/50 dark:text-blue-400/30" curve="none" />

        <flux:chart.axis axis="y" position="right" tick-prefix="$" :format="[
            'notation' => 'compact',
            'compactDisplay' => 'short',
            'maximumFractionDigits' => 1,
        ]">
            <flux:chart.axis.grid />
            <flux:chart.axis.tick />
        </flux:chart.axis>

        <flux:chart.axis axis="x" field="date">
            <flux:chart.axis.tick />
            <flux:chart.axis.line />
        </flux:chart.axis>
    </flux:chart.svg>
 </flux:chart>

How do you expect it to work?

Show 21 Uhr

Please confirm (incomplete submissions will not be addressed)

  • I have provided easy and step-by-step instructions to reproduce the bug.
  • I have provided code samples as text and NOT images.
  • I understand my bug report will be closed if I haven't met the criteria above.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions