×

Server-side internationalization framework for web applications

  • US 10,860,346 B2
  • Filed: 08/15/2017
  • Issued: 12/08/2020
  • Est. Priority Date: 08/15/2017
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method comprising:

  • receiving, at a server, a web-protocol request from a client device, wherein the web-protocol request is a Representation State Transfer (REST) request;

    triggering a server-side operation in response to the request;

    identifying, based on a result of the operation, first text information to be returned to the client device, wherein a text key corresponds to the first text information, and in code used by the server, the first text information is replaced with the text key;

    determining a language associated with the client device based on at least one of;

    a language specified in the web-protocol request, anda supported language that is an approximation of the language specified in the web-protocol request, wherein the approximation is determined based on a set of rules;

    determining whether a resource file corresponding to the determined language is loaded in a volatile memory on the server, wherein the resource file stores a mapping between the text key, first text information and second text information;

    loading a resource file corresponding to the determined language, from a non-volatile memory into the volatile memory, in a case where the resource file corresponding to the determined language is not loaded in the volatile memory;

    retrieving, from the resource file in the volatile memory, and based on the text key, second text information which corresponds to the first text information to be returned to the client device; and

    transmitting the second text information to the client device,wherein the first text information includes parametrized text, and further comprising, prior to transmitting the second text information to the client device,retrieving, from the non-volatile memory, a parameter value corresponding to the first text information to be returned to the client device; and

    interpolating the parameterized text with the parameter value.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×