yassinedoghri / astro-i18next

An astro integration of i18next + some utility components to help you translate your astro websites!
https://astro-i18next.yassinedoghri.com
MIT License
521 stars 37 forks source link

An exception occurred when executing the command 'npx astro-i18next generate' #176

Closed jianghong008 closed 1 year ago

jianghong008 commented 1 year ago

Describe the bug

An exception occurred when executing the command npx astro-i18next generate, and files under the src directory were incorrectly parsed. Source code:

<Layout title=" Web3-based space exploration game">
  <main role="main" class="bg-astra-sub-page pt-24 h-full" data-controller="ido" data-connected="false">
    <div class="bg-sub-page-panels w-full">
      <div aria-label="Panels" class="mx-auto w-full mb-16 max-w-7xl lg:grid grid-cols-2 pt-12 gap-x-12 lg:px-8 px-4">
        <div class="flex flex-col w-full mb-4 lg:mb-0">
          <div class="mb-8">
            <h1 class="mb-4 font-orbitron text-3xl font-bold text-white">
              Be an Early Supporter
            </h1>
            <h1 class="mb-4 font-orbitron text-3xl font-bold text-white">
              of
              <span class="text-orange-500"> ASTRA IDO</span>
              and
            </h1>
            <h1 class="font-orbitron text-3xl font-bold text-white">
              Experience the Cosmos
            </h1>
          </div>
          <div
......more

at last:

-- -
    <Layout>title;
" Web3-based space exploration game" >
    <main>role;
"main";
class {
}
"bg-astra-sub-page pt-24 h-full";
data - controller;
"ido";
data - connected;
"false" >
    <div>class {
    };
"bg-sub-page-panels w-full" >
    <div>aria - label;
"Panels";
class {
......more