home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where author_association = "OWNER" and issue = 1323346408 sorted by updated_at descending

✖
✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: reactions, created_at (date), updated_at (date)

user 1

  • simonw 4

issue 1

  • i18n support · 4 ✖

author_association 1

  • OWNER · 4 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
1233697166 https://github.com/simonw/datasette/issues/1775#issuecomment-1233697166 https://api.github.com/repos/simonw/datasette/issues/1775 IC_kwDOBm6k_c5JiLmO simonw 9599 2022-09-01T03:36:44Z 2022-09-01T03:36:44Z OWNER

I don't want to start any efforts around documentation translation until after the Datasette 1.0 release, because I'd like to be confident that we're not translating documentation that may have some big changes before Datasette is fully stable!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
i18n support 1323346408  
1233682708 https://github.com/simonw/datasette/issues/1775#issuecomment-1233682708 https://api.github.com/repos/simonw/datasette/issues/1775 IC_kwDOBm6k_c5JiIEU simonw 9599 2022-09-01T03:09:36Z 2022-09-01T03:09:36Z OWNER

Some tutorials that look useful:

  • https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xiii-i18n-and-l10n
  • https://phrase.com/blog/posts/i18n-advantages-babel-python/
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
i18n support 1323346408  
1233680769 https://github.com/simonw/datasette/issues/1775#issuecomment-1233680769 https://api.github.com/repos/simonw/datasette/issues/1775 IC_kwDOBm6k_c5JiHmB simonw 9599 2022-09-01T03:06:44Z 2022-09-01T03:06:44Z OWNER

My hope is that Datasette actually has a relatively small i18n footprint - there really aren't that many screens with strings that will need translating.

Translating the documentation would be a much bigger task, but that's not a blocker on getting the interface itself internationalized.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
i18n support 1323346408  
1233680261 https://github.com/simonw/datasette/issues/1775#issuecomment-1233680261 https://api.github.com/repos/simonw/datasette/issues/1775 IC_kwDOBm6k_c5JiHeF simonw 9599 2022-09-01T03:05:57Z 2022-09-01T03:05:57Z OWNER

OK, I'm convinced that it's time to start figuring this out.

I've done a little bit of this with Django in the past, but Datasette isn't built on Django.

It looks to me like the key library for implementing this is Babel: https://babel.pocoo.org/en/latest/

It's been around since 2007 and is very widely used: https://github.com/python-babel/babel/network/dependents?package_id=UGFja2FnZS01MDM0NTU3NQ%3D%3D

Also found these hints on getting it to work with Jinja: https://stackoverflow.com/questions/12046998/babel-doesnt-recognize-jinja2-extraction-method-for-language-support

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
i18n support 1323346408  

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
, [performed_via_github_app] TEXT);
CREATE INDEX [idx_issue_comments_issue]
                ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
                ON [issue_comments] ([user]);
Powered by Datasette · Queries took 33.131ms · About: github-to-sqlite
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows