Skip to main content

2 posts tagged with "i18n"

View All Tags

Internationalization and SQLite Enhancements

· One min read
TeaQL Team
Core Team

Internationalization milestone with SQLite schema migration enhancements.

Traditional Chinese Support​

+ Full Traditional Chinese (zh-TW) translation
+ BaseLanguageTranslator base class

Supported languages: English (en), Simplified Chinese (zh-CN), Traditional Chinese (zh-TW).

SQLite ALTER COLUMN​

SQLite's limited ALTER TABLE support implemented via table recreation:

+ SQLiteRepository: alter column via table recreation
+ Data preservation during table recreation

CODE_AS_IS Constant Strategy​

Constant values emitted exactly as defined in the domain model without transformation.

Boolean Property Naming​

Default boolean naming changed from hasXxx to haveXxx:

// Before
user.hasPermission()

// After (default)
user.havePermission()

Legacy projects can set use_has='true' to maintain compatibility.

GraphQL Queries and BaseService CRUD Framework

· One min read
TeaQL Team
Core Team

Kicking off 2024 with GraphQL support, service layer framework, and view translation.

GraphQL Support​

query {
orders(filter: {status: {eq: "ACTIVE"}}) {
id
amount
customer { name }
}
}
+ teaql-graphql: GraphQL query support
+ Dynamic attribute support
+ Scalar/JSON type handling
+ Relation property selection
+ Simple property optimization

BaseService Framework​

@RestController
public class OrderService extends BaseService<Order, CustomUserContext> {
// Inherits save, delete, find, update, etc.
}
+ BaseService: auto-generated CRUD operations
+ Register controller: auto-exposes REST endpoints

View Translation System​

  • NoopTranslator: Pass-through for development
  • SimpleChineseViewTranslator: Chinese localization
  • Action translation for internationalized UIs

HANA Entity Descriptors​

SAP HANA-specific entity, property, and relation descriptors.