Giter Club home page Giter Club logo

Comments (14)

 avatar commented on September 15, 2024 1

Sure, here: https://github.com/tiagojacinto/tgjcnt

from ter.

kkga avatar kkga commented on September 15, 2024

Hmm I'm not sure what exactly the translation would be in this case. 99% of text on the pages is user's content.
Can you give a specific example?

from ter.

 avatar commented on September 15, 2024

Yes, there are only a few strings that can be translated, like "Child pages" or "Child Tags". Since there aren't much more, perhaps this could be directly translated by the user in config.json? Also, the date format could be added as an option as well. What do you think?

from ter.

kkga avatar kkga commented on September 15, 2024

from ter.

 avatar commented on September 15, 2024

That's perfect, awesome :)

from ter.

kkga avatar kkga commented on September 15, 2024

The date formatting should be configurable in the latest release. Here's the config example: https://ter.kkga.me/usage#options.
For Portuguese you can use pt (https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)

Let me know if it works as intended for you.

from ter.

 avatar commented on September 15, 2024

I can't seem to use Ter 0.8.0, I get this error:

error: Uncaught TypeError: Cannot convert undefined or null to object return handleCache(template, options)(data, options); ^ at Function.keys (<anonymous>) at eval (eval at compile (https://deno.land/x/[email protected]/compile.ts:24:16), <anonymous>:57:8) at render (https://deno.land/x/[email protected]/render.ts:90:42) at buildPage (https://deno.land/x/[email protected]/build.ts:101:16) at buildContentFiles (https://deno.land/x/[email protected]/files.ts:61:24) at async Promise.all (index 0) at async generateSite (https://deno.land/x/[email protected]/main.ts:116:59) at async main (https://deno.land/x/[email protected]/main.ts:216:3)

from ter.

kkga avatar kkga commented on September 15, 2024

hmm... hard to say what went wrong here. Can you try running with -r flag to make sure it reloads all dependencies?

deno run -A -r --unstable https://deno.land/x/ter/main.ts

from ter.

 avatar commented on September 15, 2024

WHen I run that command, this happens:

error: Uncaught TypeError: Cannot convert undefined or null to object return handleCache(template, options)(data, options); ^ at Function.keys (<anonymous>) at eval (eval at compile (https://deno.land/x/[email protected]/compile.ts:24:16), <anonymous>:57:8) at render (https://deno.land/x/[email protected]/render.ts:90:42) at buildPage (https://deno.land/x/[email protected]/build.ts:101:16) at buildContentFiles (https://deno.land/x/[email protected]/files.ts:61:24) at async Promise.all (index 0) at async generateSite (https://deno.land/x/[email protected]/main.ts:116:59) at async main (https://deno.land/x/[email protected]/main.ts:216:3)

from ter.

 avatar commented on September 15, 2024

If run this command: deno run -A -r --unstable https://deno.land/x/[email protected]/main.ts --serve
It works, both generating _site and --serve.
But it does not work if I use "[email protected]".

from ter.

kkga avatar kkga commented on September 15, 2024

Is there any chance I can try debugging this with your content/config? Do you have a published site or a source git repo?

from ter.

kkga avatar kkga commented on September 15, 2024

Thanks for sharing. This was helpful as I found the issue.

I'll push an update soon, but in the meantime if you want to build a site with 0.8.0, just add an empty navigation object in the config.json:

{
  "navigation": {}
}

from ter.

kkga avatar kkga commented on September 15, 2024

New release should work (without having to adjust config file): https://github.com/kkga/ter/releases/tag/0.8.1

Thanks πŸ‘πŸΌ

from ter.

 avatar commented on September 15, 2024

I confirm that it is working!
Thanks!

from ter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.