p≡p engine FORK
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

36 lines
783 B

-- DDL
CREATE TABLE i18n_language (
lang text primary key,
name text
);
CREATE TABLE wordlist (
lang text
references i18n_language (lang),
id integer,
word text,
entropy integer
);
CREATE UNIQUE INDEX wordlist_pk on wordlist (lang, id);
CREATE TABLE i18n_token (
lang text
references i18n_language (lang),
id integer,
phrase text
);
CREATE UNIQUE INDEX i18n_token_pk on i18n_token (lang, id);
-- DML
INSERT INTO i18n_language VALUES ('en', 'English');
INSERT INTO i18n_token VALUES ('en', 1, 'I want to have this conversation in English language');
INSERT INTO i18n_language VALUES ('de', 'Deutsch');
INSERT INTO i18n_token VALUES ('de', 1, 'Ich möchte dieses Gespräch auf Deutsch führen');
-- add more languages here