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

Add ja-JP.yml #2295

Merged
merged 11 commits into from
Mar 28, 2025
Merged

Add ja-JP.yml #2295

merged 11 commits into from
Mar 28, 2025

Conversation

manabu-nakamura
Copy link
Contributor

@manabu-nakamura manabu-nakamura commented Mar 13, 2025

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (refactoring and improving code)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Description

This is the first version of ja-JP.yml.

'01 / 23' is preferred over '23 / 01,' '23 Jan,' or 'Jan 23' in Japan.
But, it is difficult because the date is hard coded.
Workaround: Copy _layouts/archives.html into your repository's _layouts and change the hard coded date (line 26-29):

<span class="date day" data-ts="{{ ts }}" data-df="DD">{{ post.date | date: '%d' }}</span>
<span class="date month small text-muted ms-1" data-ts="{{ ts }}" data-df="{{ df_dayjs_m }}">
  {{ post.date | date: df_strftime_m }}
</span>

⬇️

<span class="date day" data-ts="{{ ts }}" data-df="MM /">{{ post.date | date: '%m /' }}</span>
<span class="date month small text-muted ms-1" data-ts="{{ ts }}" data-df="DD">
  {{ post.date | date: '%d' }}
</span>

https://github.com/manabu-nakamura/chirpy-starter/blob/main/_layouts/archives.html
https://manabu-nakamura.github.io/chirpy-starter/archives/

https://github.com/manabu-nakamura/chirpy-starter
https://manabu-nakamura.github.io/chirpy-starter/

Additional context

#2178

@cotes2020 cotes2020 merged commit 571c90f into cotes2020:master Mar 28, 2025
1 check passed
@cotes2020 cotes2020 linked an issue Mar 28, 2025 that may be closed by this pull request
1 task
@manabu-nakamura manabu-nakamura deleted the ja-JP branch March 29, 2025 01:26
apoplexi24 added a commit to apoplexi24/apoplexi24.github.io that referenced this pull request Apr 1, 2025
feat(i18n): add Japanese locale (cotes2020#2295)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Japanese (ja-JP) locale support
2 participants