All Posts
News bits
Astro 3.5: i18n Routing
Astro 3.5: i18n Routing
2023 年 11 月 8 日に Astro 3.5 がリリースされました。
https://astro.build/blog/astro-350/
実験的な機能として多言語対応を行える i18n Routing API が追加されました。この機能を有効化するとAstro.preferredLocaleとAstro.preferredLocaleList が利用できるようになります。
// astro.config.mjs
import { defineConfig } from "astro/config";
export default defineConfig({
experimental: {
i18n: {
defaultLocale: "en",
locales: ["en", "es", "pt-br"],
},
},
});他、プリフェッチのオプトイン機能化や、Qwik のサポートなどが入っています。
著者について
Hi there. I'm hrdtbs, a frontend expert and technical consultant. I started my career in the creative industry over 13 years ago, learning on the job as a 3DCG modeler and game engineer in the indie scene.
In 2015 I began working as a freelance web designer and engineer. I handled everything from design and development to operation and advertising, delivering comprehensive solutions for various clients.
In 2016 I joined Wemotion as CTO, where I built the engineering team from the ground up and led the development of core web and mobile applications for three years.
In 2019 I joined matsuri technologies as a Frontend Expert, and in 2020 I also began serving as a technical manager supporting streamers and content creators.
I'm so grateful to be working in this field, doing something that brings me so much joy. Thanks for stopping by.